error-if-not-primitive-or-array

1.0.3 • Public • Published

errorIfNotPrimitiveOrArray(arg): void

Triggers a fatal error if arg is not a primitive (number, boolean, or string)
or array.

Installation

npm i error-if-not-primitive-or-array

Loading

// if using TypeScript:
import {errorIfNotPrimitiveOrArray} from 'error-if-not-primitive-or-array';
// if using ES5 JavaScript:
var errorIfNotPrimitiveOrArray = 
	require('error-if-not-primitive-or-array').errorIfNotPrimitiveOrArray;

/error-if-not-primitive-or-array/

    Package Sidebar

    Install

    npm i error-if-not-primitive-or-array

    Weekly Downloads

    5

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    8.64 kB

    Total Files

    5

    Last publish

    Collaborators

    • writetome51