is-length-x
v3.2.2
Published
Checks if `value` is a valid array-like length.
Downloads
2,562
Maintainers
Readme
is-length-x
Checks if value
is a valid array-like length.
module.exports(value)
⇒ boolean ⏏
This method checks if value
is a valid array-like length.
Kind: Exported function
Returns: boolean - Returns true
if value
is a valid length, else false
.
| Param | Type | Description | | ----- | --------------- | ------------------- | | value | * | The value to check. |
Example
import isLength from 'is-length-x';
console.log(isLength(3)); // => true
console.log(isLength(Number.MIN_VALUE)); // => false
console.log(isLength(Infinity)); // => false
console.log(isLength('3')); // => false