send-mail/node_modules/yargs/lib/is-promise.js

4 lines
147 B
JavaScript
Raw Normal View History

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