包详细信息

error-if-not-array

writetome5139MIT2.0.0

Function triggers error if argument is not array

error, message, not, array

自述文件

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';