simple-type

0.1.1 • Public • Published

simple-type

build status NPM version

enhance javascript typeof

support:array, object, number, null, boolean, function, regexp, date, undefined

Installation

This module is installed via npm:

$ npm install simple-type

Example Usage

var simpleType = require('simple-type');
 
simpleType({name: 'ruan', age: 12}) === 'object' //true
simpleType(/$a/g) === 'regexp'                   //true

Readme

Keywords

Package Sidebar

Install

npm i simple-type

Weekly Downloads

3

Version

0.1.1

License

MIT

Last publish

Collaborators

  • ruanyu1