npm.io
2.0.0 • Published 6 years ago

error-if-not-string

Licence
MIT
Version
2.0.0
Deps
0
Size
2 kB
Vulns
0
Weekly
0

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

Keywords