github-pages-deploy-action/node_modules/yargs/lib/is-promise.js

4 lines
147 B
JavaScript
Raw Normal View History

2020-03-31 20:42:07 +08:00
module.exports = function isPromise (maybePromise) {
return !!maybePromise && !!maybePromise.then && (typeof maybePromise.then === 'function')
}