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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.1
    1
  • 0.1.0
    1
  • 0.0.1
    1

Package Sidebar

Install

npm i simple-type

Weekly Downloads

3

Version

0.1.1

License

MIT

Last publish

Collaborators

  • ruanyu1