UNPKG

4.5

Version:

Monadic test assertions

6 lines (5 loc) 173 B
export function type(value: any): string { return value === null ? 'Null' : value === void 0 ? 'Undefined' : Object.prototype.toString.call(value).slice(8, -1); }