Skip to content
/ realtype Public

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

License

Notifications You must be signed in to change notification settings

boizz/realtype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published