0.1.0 • Published 6 years ago
js-type-checking v0.1.0
js-type-checking
Simple type-checking for JS.
Requires: node >= 9
Installation
npm i --save js-type-checking
Supported types
- string
- number
- boolean
- array
- object
- null
- undefined
- function
- error
- symbol
- NaN
- date
API uses lowercase type names (but NaN is NaN)
Example
const isType = require('js-type-checking');
isType({}, 'object'); // true
License
MIT
0.1.0
6 years ago