main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
376 bytes
|
Line | |
---|
1 | import _Symbol from "core-js-pure/features/symbol/index.js";
|
---|
2 | import _Symbol$hasInstance from "core-js-pure/features/symbol/has-instance.js";
|
---|
3 | export default function _instanceof(left, right) {
|
---|
4 | if (right != null && typeof _Symbol !== "undefined" && right[_Symbol$hasInstance]) {
|
---|
5 | return !!right[_Symbol$hasInstance](left);
|
---|
6 | } else {
|
---|
7 | return left instanceof right;
|
---|
8 | }
|
---|
9 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.