MCPcopy Create free account
hub / github.com/RubyLouvre/anu / isArrayLike

Function isArrayLike

test/babel.js:2417–2419  ·  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 * @par

(value)

Source from the content-addressed store, hash-verified

2415 * // => false
2416 */
2417 function isArrayLike(value) {
2418 return value != null && isLength(value.length) && !isFunction(value);
2419 }
2420
2421 module.exports = isArrayLike;
2422

Callers 9

keysFunction · 0.70
keysInFunction · 0.70
includesFunction · 0.70
isIterateeCallFunction · 0.70
babel.jsFile · 0.70
baseMapFunction · 0.70
createFindFunction · 0.70
createBaseEachFunction · 0.70
isArrayLikeObjectFunction · 0.70

Calls 2

isLengthFunction · 0.85
isFunctionFunction · 0.70

Tested by

no test coverage detected