send-mail/node_modules/yargs/lib/is-promise.js
dougpagani 2095e6ffe3
Add markdown format support (#25)
Co-authored-by: Dawid Dziurla <dawidd0811@gmail.com>
2020-11-30 18:51:34 +01:00

4 lines
147 B
JavaScript

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