feige
2025-03-03 f5edbc080d696fbd55de84f6a906aeb2cde3b1b6
1
2
3
export default function isPromise(obj) {
  return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
}