Files
Mosiur c295362495 React
2026-04-24 21:03:01 +06:00

4 lines
151 B
JavaScript

export default function isPromise(obj) {
return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
}