coderaiser / itype

Improved type check

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iType License NPM version Dependency Status Build Status Coverage Status

Improved type check.

Install

npm i itype --save

How to use?

const itype = require('itype');

console.og(itype.string('hello'))
// returns
true

console.log(itype('world'));
// returns
'string'

console.log(itype.array([1, 2]));
// returns
true

License

MIT

About

Improved type check

License:MIT License


Languages

Language:JavaScript 100.0%