npm.io
1.1.2 • Published 9 years ago

realtype

Licence
MIT
Version
1.1.2
Deps
0
Vulns
0
Weekly
0
Stars
2

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

Keywords