Adrian's collection of super useful NPM packages.
- async - Higher-order functions and common patterns for asynchronous code.
const toString = Object.prototype.toString; | |
function isFunction (obj) { | |
return toString.call(obj) === '[object Function]'; | |
} | |
function isString (obj) { | |
return toString.call(obj) === '[object String]'; | |
} |