Pibd-21_Ievlewa_M.D._Intern.../node_modules/is-promise/index.js
2023-12-10 21:07:47 +03:00

7 lines
201 B
JavaScript

module.exports = isPromise;
module.exports.default = isPromise;
function isPromise(obj) {
return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
}