4 ms·
I'm only finding about it today TBH. Usually I go for what this library does: function isPromise(obj) { return typeof obj?.then === 'function' }
by mikewhy 6y ago
I'm only finding about it today TBH. Usually I go for what this library does:
function isPromise(obj) {
return typeof obj?.then === 'function'
}