Tcsm
2023-08-31 d7822563b65873c59ad2363db9852782b8d5e609
1
2
3
export default function isPromise(obj) {
  return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
}