UNPKG

595 BJavaScriptView Raw
1"use strict";
2
3exports.__esModule = true;
4
5var _hasInstance = require("../core-js/symbol/has-instance");
6
7var _hasInstance2 = _interopRequireDefault(_hasInstance);
8
9var _symbol = require("../core-js/symbol");
10
11var _symbol2 = _interopRequireDefault(_symbol);
12
13function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
15exports.default = function (left, right) {
16 if (right != null && typeof _symbol2.default !== "undefined" && right[_hasInstance2.default]) {
17 return right[_hasInstance2.default](left);
18 } else {
19 return left instanceof right;
20 }
21};
\No newline at end of file