wrangler-action/node_modules/yargs/build/lib/utils/is-promise.js
2023-08-07 15:11:15 -05:00

5 lines
155 B
JavaScript

export function isPromise(maybePromise) {
return (!!maybePromise &&
!!maybePromise.then &&
typeof maybePromise.then === 'function');
}