diff options
Diffstat (limited to 'node_modules/is-promise/index.mjs')
| -rw-r--r-- | node_modules/is-promise/index.mjs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/node_modules/is-promise/index.mjs b/node_modules/is-promise/index.mjs new file mode 100644 index 0000000..bf9e99b --- /dev/null +++ b/node_modules/is-promise/index.mjs @@ -0,0 +1,3 @@ +export default function isPromise(obj) { + return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function'; +} |