is-length-x

3.2.2 • Public • Published

Travis status Dependency status devDependency status npm version jsDelivr hits bettercodehub score Coverage Status

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

Package Sidebar

Install

npm i is-length-x

Weekly Downloads

204

Version

3.2.2

License

MIT

Unpacked Size

239 kB

Total Files

11

Last publish

Collaborators

  • xotic750