4.17.11
3.10.1
2.4.2
1.3.1
_.isLength(value)
Checks if value is a valid array-like length.
Note: This method is loosely based on
ToLength.
Since
4.0.0
Arguments
argument
valuetype
*
description
The value to check.
Returns
(array)Example
_.isLength(3);
// => true
_.isLength(Number.MIN_VALUE);
// => false
_.isLength(Infinity);
// => false
_.isLength("3");
// => false
_.isLength(3);
// => true
_.isLength(Number.MIN_VALUE);
// => false
_.isLength(Infinity);
// => false
_.isLength("3");
// => false