Skip to content

iamdevonbutler/js-istype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

js-istype Build Status

JS type checking.

engines: node >= 9.x

Installation

npm i --save iamdevonbutler/js-istype#1.0

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-istype');
isType({}, 'object'); // true

License

MIT