JSPM

@bemoje/assert-array-like

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q21376F
  • License MIT

Throw TypeError if not a value is array-like. The undefined value always evaluates to true.

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

NPM version

Travis CI

dependencies

Dependencies

dependencies

Stats

NPM downloads Forks

Buy Me A Beer donate button PayPal donate button

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