is-array-like-x

2.1.2 • Public • Published

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

is-array-like-x

Determine if a value is array like.

module.exports(value)boolean

Checks if value is array-like. A value is considered array-like if it's not a function and has a length that's an integer greater than or equal to 0 and less than or equal to Number.MAX_SAFE_INTEGER.

Kind: Exported function
Returns: boolean - Returns true if subject is array-like, else false.

Param Type Description
value * The object to be tested.

Example

import isArrayLike from 'is-array-like-x';
 
console.log(isArrayLike([1, 2, 3])); // true
console.log(isArrayLike(document.body.children)); // true
console.log(isArrayLike('abc')); // true
console.log(isArrayLike(isArrayLike)); // false

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.1.245latest

Version History

VersionDownloads (Last 7 Days)Published
2.1.245
2.1.12
2.1.03
2.0.190
2.0.180
2.0.170
2.0.160
2.0.152
2.0.140
2.0.130
2.0.123
2.0.110
2.0.100
2.0.93
2.0.80
2.0.70
2.0.62
2.0.52
2.0.43
2.0.33
2.0.21
2.0.12
2.0.03
1.8.0571
1.7.01
1.6.01
1.5.12
1.5.00
1.4.02
1.3.02
1.2.00
1.1.11
1.1.02
1.0.130
1.0.121
1.0.110
1.0.100
1.0.90
1.0.81
1.0.71
1.0.60
1.0.50
1.0.41
1.0.30
1.0.21
1.0.10
1.0.00

Package Sidebar

Install

npm i is-array-like-x

Weekly Downloads

573

Version

2.1.2

License

MIT

Unpacked Size

242 kB

Total Files

11

Last publish

Collaborators

  • xotic750