realtype

1.1.2 • Public • Published

realtype

npm package NPM downloads Dependency Status

Can be used to distinguish between these types: boolean, number, string, function, array, date, regexp, object, error.

Usage

npm i --save realtype
var realtype = require('realtype');
realtype(['Heleth']);
// => array

API

realtype(obj: any): 'boolean' | 'number' | 'string' | 'function' | 'array' | 'date' | 'regexp' | 'object' | 'error'

Return real type.

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.2
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.2
    0
  • 1.1.1
    0
  • 1.0.0
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i realtype

Weekly Downloads

0

Version

1.1.2

License

MIT

Last publish

Collaborators

  • heleth