source: imaps-frontend/node_modules/lodash-es/_castArrayLikeObject.js

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 379 bytes
Line 
1import isArrayLikeObject from './isArrayLikeObject.js';
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
14export default castArrayLikeObject;
Note: See TracBrowser for help on using the repository browser.