2.0.0 • Published 4 years ago

error-if-not-string v2.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

errorIfNotString(arg): void

Triggers error "Input must be string" if arg is not a string.

Installation

npm i error-if-not-string

Loading

import { errorIfNotString } from 'error-if-not-string';