aboutsummaryrefslogtreecommitdiff
path: root/node_modules/@babel/runtime/helpers/instanceof.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/@babel/runtime/helpers/instanceof.js')
-rw-r--r--node_modules/@babel/runtime/helpers/instanceof.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/node_modules/@babel/runtime/helpers/instanceof.js b/node_modules/@babel/runtime/helpers/instanceof.js
new file mode 100644
index 00000000..830c41e3
--- /dev/null
+++ b/node_modules/@babel/runtime/helpers/instanceof.js
@@ -0,0 +1,13 @@
+var _Symbol$hasInstance = require("../core-js/symbol/has-instance");
+
+var _Symbol = require("../core-js/symbol");
+
+function _instanceof(left, right) {
+ if (right != null && typeof _Symbol !== "undefined" && right[_Symbol$hasInstance]) {
+ return right[_Symbol$hasInstance](left);
+ } else {
+ return left instanceof right;
+ }
+}
+
+module.exports = _instanceof; \ No newline at end of file