Package Exports
- @bemoje/assert-array-like
- @bemoje/assert-array-like/dist/assert-array-like.esm.js
- @bemoje/assert-array-like/dist/assert-array-like.umd.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@bemoje/assert-array-like) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@bemoje/assert-array-like
Throw TypeError if not a value is array-like. The undefined value always evaluates to true.
Version
Travis CI
Dependencies
Stats
Donate
Installation
npm install @bemoje/assert-array-like
npm install --save @bemoje/assert-array-like
npm install --save-dev @bemoje/assert-array-like
Usage
import assertArrayLike from '@bemoje/assert-array-like'
assertArrayLike([])
//=> void
assertArrayLike(new Uint16Array())
//=> void
//assertArrayLike({})
//=> throw TypeError
Tests
Uses Jest to test module functionality. Run tests to get coverage details.
npm run test
API
Table of Contents
assertArrayLike
Throw TypeError if not a value is array-like. The undefined value always evaluates to true.
Parameters
value
any The value
Returns void