Checks if value is a valid array-like length.
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