Checks if value is a valid array-like length.
value
Note: This method is loosely based on ToLength.
ToLength
The value to check.
Returns true if value is a valid length, else false.
true
false
5.5.0
isLength(3)// => trueisLength(Number.MIN_VALUE)// => falseisLength(Infinity)// => falseisLength('3')// => false Copy
isLength(3)// => trueisLength(Number.MIN_VALUE)// => falseisLength(Infinity)// => falseisLength('3')// => false
Checks if
value
is a valid array-like length.Note: This method is loosely based on
ToLength
.