deno.land / x / rambda@v9.1.1 / source / type.js
12345678910111213export function type(input){ if (input === null){ return 'Null' } else if (input === undefined){ return 'Undefined' } else if (Number.isNaN(input)){ return 'NaN' } const typeResult = Object.prototype.toString.call(input).slice(8, -1)
return typeResult === 'AsyncFunction' ? 'Promise' : typeResult}
Version Info