gh-action-bump-version/node_modules/yargs/lib/is-promise.js

4 lines
147 B
JavaScript

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