2.1.2 • Published 5 years ago

is-array-like-x v2.1.2

Weekly downloads
1,005
License
MIT
Repository
github
Last release
5 years ago

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.

ParamTypeDescription
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
2.1.2

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.19

5 years ago

2.0.18

5 years ago

2.0.17

5 years ago

2.0.16

5 years ago

2.0.15

5 years ago

2.0.14

5 years ago

2.0.13

5 years ago

2.0.12

5 years ago

2.0.11

5 years ago

2.0.10

5 years ago

2.0.9

5 years ago

2.0.8

5 years ago

2.0.7

5 years ago

2.0.6

5 years ago

2.0.5

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.8.0

7 years ago

1.7.0

7 years ago

1.6.0

7 years ago

1.5.1

7 years ago

1.5.0

7 years ago

1.4.0

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.13

8 years ago

1.0.12

8 years ago

1.0.11

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago