summaryrefslogtreecommitdiff
path: root/bin/wiki/ImportarDesdeURL/node_modules/p-is-promise/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'bin/wiki/ImportarDesdeURL/node_modules/p-is-promise/index.js')
-rw-r--r--bin/wiki/ImportarDesdeURL/node_modules/p-is-promise/index.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/bin/wiki/ImportarDesdeURL/node_modules/p-is-promise/index.js b/bin/wiki/ImportarDesdeURL/node_modules/p-is-promise/index.js
new file mode 100644
index 00000000..389d38fc
--- /dev/null
+++ b/bin/wiki/ImportarDesdeURL/node_modules/p-is-promise/index.js
@@ -0,0 +1,15 @@
+'use strict';
+
+const isPromise = input => (
+ input instanceof Promise ||
+ (
+ input !== null &&
+ typeof input === 'object' &&
+ typeof input.then === 'function' &&
+ typeof input.catch === 'function'
+ )
+);
+
+module.exports = isPromise;
+// TODO: Remove this for the next major release
+module.exports.default = isPromise;