Actualizacion maquina principal
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / p-is-promise / index.js
diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/p-is-promise/index.js b/.config/coc/extensions/node_modules/coc-prettier/node_modules/p-is-promise/index.js
new file mode 100644 (file)
index 0000000..389d38f
--- /dev/null
@@ -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;