Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 1.24 KB

README.md

File metadata and controls

36 lines (24 loc) · 1.24 KB

realtype

npm package NPM downloads Dependency Status FOSSA 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

FOSSA Status