aijinhui
2023-11-24 457e566525d57ce0904e00aab9298ab0693ad5a1
1
2
3
export default function isPromise(obj) {
  return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
}