diff options
Diffstat (limited to 'node_modules/yargs/build/lib/utils/is-promise.js')
-rw-r--r-- | node_modules/yargs/build/lib/utils/is-promise.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/node_modules/yargs/build/lib/utils/is-promise.js b/node_modules/yargs/build/lib/utils/is-promise.js new file mode 100644 index 0000000..d250c08 --- /dev/null +++ b/node_modules/yargs/build/lib/utils/is-promise.js @@ -0,0 +1,5 @@ +export function isPromise(maybePromise) { + return (!!maybePromise && + !!maybePromise.then && + typeof maybePromise.then === 'function'); +} |