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