MCPcopy
hub / github.com/dunky11/react-saas-template / isArrayLike

Function isArrayLike

src/shared/functions/toArray.js:674–676  ·  view source on GitHub ↗

* Checks if `value` is array-like. A value is considered array-like if it's * not a function and has a `value.length` that's an integer greater than or * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} v

(value)

Source from the content-addressed store, hash-verified

672 * // => false
673 */
674function isArrayLike(value) {
675 return value != null && isLength(value.length) && !isFunction(value);
676}
677
678/**
679 * This method is like `_.isArrayLike` except that it also checks if `value`

Callers 3

isArrayLikeObjectFunction · 0.85
toArrayFunction · 0.85
keysFunction · 0.85

Calls 2

isLengthFunction · 0.85
isFunctionFunction · 0.85

Tested by

no test coverage detected