a3a14bf17178c44b2ba9304ababcb43f9535ecd9f3f5be1559f1a7feea3028de81c0cd5a92ed595439386c3e96dbae1d0fcb17271067fdf2cf6a01b73e93c0 379 B

1234567891011121314
  1. import isArrayLikeObject from './isArrayLikeObject.js';
  2. /**
  3. * Casts `value` to an empty array if it's not an array like object.
  4. *
  5. * @private
  6. * @param {*} value The value to inspect.
  7. * @returns {Array|Object} Returns the cast array-like object.
  8. */
  9. function castArrayLikeObject(value) {
  10. return isArrayLikeObject(value) ? value : [];
  11. }
  12. export default castArrayLikeObject;