MCPcopy
hub / github.com/tdewolff/minify / isArrayLike

Function isArrayLike

_benchmarks/sample_victory.js:17869–17871  ·  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

17867 * // => false
17868 */
17869function isArrayLike(value) {
17870 return value != null && isLength(value.length) && !isFunction(value);
17871}
17872
17873module.exports = isArrayLike;
17874

Callers 4

createFindFunction · 0.70
sample_victory.jsFile · 0.70
isArrayLikeObjectFunction · 0.70
isEmptyFunction · 0.70

Calls 2

isLengthFunction · 0.70
isFunctionFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…