github-pages-deploy-action/node_modules/yargs/lib/is-promise.js
2020-01-27 23:58:23 -05:00

4 lines
147 B
JavaScript

module.exports = function isPromise (maybePromise) {
return !!maybePromise && !!maybePromise.then && (typeof maybePromise.then === 'function')
}