@bemoje/is-array-like
v1.0.2
Published
Determine if a value is array-like. Fork of https://github.com/gearcase/is-array-like.
Downloads
1
Maintainers
Readme
@bemoje/is-array-like
Determine if a value is array-like. Fork of https://github.com/gearcase/is-array-like.
Version
Travis CI
Dependencies
Stats
Donate
Installation
npm install @bemoje/is-array-like
npm install --save @bemoje/is-array-like
npm install --save-dev @bemoje/is-array-like
Usage
import isArrayLike from '@bemoje/is-array-like'
isArrayLike([])
//=> true
isArrayLike(new Uint16Array())
//=> true
const fn = () => isArrayLike(arguments)
fn()
//=> true
Tests
Uses Jest to test module functionality. Run tests to get coverage details.
npm run test
API
Table of Contents
isArrayLike
Determine if a value is array-like. Fork of https://github.com/gearcase/is-array-like.
Parameters
value
any The value
Returns boolean