source: trip-planner-front/node_modules/lodash/_castArrayLikeObject.js@ 8d391a1

Last change on this file since 8d391a1 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 381 bytes
Line 
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.