JSPM

error-if-not-array

2.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 17
  • Score
    100M100P100Q44187F
  • License MIT

Function triggers error if argument is not array

Package Exports

  • error-if-not-array

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 (error-if-not-array) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

errorIfNotArray(arg): void

Triggers error "Input must be array" if arg is not array.

Installation

npm i error-if-not-array

Loading

import { errorIfNotArray } from 'error-if-not-array';