0.1.0 • Published 6 years ago

js-type-checking v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

js-type-checking Build Status

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