An error occurred while loading the file. Please try again.
index.js 201 bytes
module.exports = isPromise;
module.exports.default = isPromise;
function isPromise(obj) {
  return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function';