Can be used to distinguish between these types: boolean, number, string, function, array, date, regexp, object, error.
npm i --save realtype
var realtype = require('realtype');
realtype(['Heleth']);
// => array
realtype(obj: any): 'boolean' | 'number' | 'string' | 'function' | 'array' | 'date' | 'regexp' | 'object' | 'error'
Return real type.
MIT