Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Xotic750/is-length-x

Repository files navigation

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

About

Checks if `value` is a valid array-like length.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published