github-pages-deploy-action/node_modules/is-promise/index.js

6 lines
165 B
JavaScript
Raw Normal View History

2020-03-07 11:45:40 +08:00
module.exports = isPromise;
function isPromise(obj) {
return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
}