IB-AR-Neural-Style-Transfers / artficial.api / node_modules / is-promise / index.mjs
index.mjs
Raw
export default function isPromise(obj) {
  return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
}