judge-type

0.0.2 • Public • Published

Judge Type

Check datatype.

Install

$ npm install judge-type --save

Usage

jt = require('judge-type');
str = 'hello';
num = 100;
jt.isString(str); // true
jt.isString(num); // false

jt.isNumber(str); // false
jt.isNumber(num); // true

/judge-type/

    Package Sidebar

    Install

    npm i judge-type

    Weekly Downloads

    0

    Version

    0.0.2

    License

    MIT

    Last publish

    Collaborators

    • gungungggun