error-if-length-is-zero
v1.0.1
Published
Function triggers error if argument has length === 0
Downloads
9
Maintainers
Readme
errorIfLengthIsZero( arg: { length: number }): void
Triggers error "Input must have length greater than zero" if!(arg.length) || arg.length < 1
.
Installation
npm i error-if-length-is-zero
Loading
import { errorIfLengthIsZero } from 'error-if-length-is-zero';