mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
| .. | ||
| dist | ||
| .bower.json | ||
| bower.json | ||
| ChangeLog | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
iType

Improved type check.
Install
npm i itype --save
How to use?
var itype = require('itype');
console.og(itype.string('hello'))
// returns
true
console.log(itype('world'));
// returns
'string'
console.log(itype.array([1, 2]));
// returns
true
Environments
In old node.js environments that not fully supports es2015, itype could be used with:
var itype = require('itype/legacy');
License
MIT