blob: 830c41e36c3098551dfe0fdf2ea57a6f12902f32 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
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;
|