mobileapplicationPassvault/node_modules/yargs/build/lib/utils/is-promise.js

6 lines
155 B
JavaScript
Raw Normal View History

2024-04-12 05:23:32 +00:00
export function isPromise(maybePromise) {
return (!!maybePromise &&
!!maybePromise.then &&
typeof maybePromise.then === 'function');
}