Checks if value is a valid array-like length.
value
Note: This function is loosely based on ToLength.
ToLength
Optional
The value to check.
Returns true if value is a valid length, else false.
true
false
_.isLength(3);// => true_.isLength(Number.MIN_VALUE);// => false_.isLength(Infinity);// => false_.isLength('3');// => false Copy
_.isLength(3);// => true_.isLength(Number.MIN_VALUE);// => false_.isLength(Infinity);// => false_.isLength('3');// => false
Checks if
value
is a valid array-like length.Note: This function is loosely based on
ToLength
.