source: imaps-frontend/node_modules/lodash/_castArrayLikeObject.js@ 79a0317

main
Last change on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 381 bytes
RevLine 
[79a0317]1var isArrayLikeObject = require('./isArrayLikeObject');
2
3/**
4 * Casts `value` to an empty array if it's not an array like object.
5 *
6 * @private
7 * @param {*} value The value to inspect.
8 * @returns {Array|Object} Returns the cast array-like object.
9 */
10function castArrayLikeObject(value) {
11 return isArrayLikeObject(value) ? value : [];
12}
13
14module.exports = castArrayLikeObject;
Note: See TracBrowser for help on using the repository browser.