7 ms·
mrw you're using a package to do a type-check: return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function'
by ConcernedCoder 6y ago
mrw you're using a package to do a type-check:
return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function'