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';
Function triggers error if argument is not array
Triggers error "Input must be array" if arg
is not array.
npm i error-if-not-array
import { errorIfNotArray } from 'error-if-not-array';