UNPKG

364 BJavaScriptView Raw
1var _Symbol$hasInstance = require("../core-js/symbol/has-instance");
2
3var _Symbol = require("../core-js/symbol");
4
5function _instanceof(left, right) {
6 if (right != null && typeof _Symbol !== "undefined" && right[_Symbol$hasInstance]) {
7 return right[_Symbol$hasInstance](left);
8 } else {
9 return left instanceof right;
10 }
11}
12
13module.exports = _instanceof;
\No newline at end of file