Last change
on this file since 188ee53 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
326 bytes
|
Line | |
---|
1 | function _instanceof(left, right) {
|
---|
2 | if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
---|
3 | return !!right[Symbol.hasInstance](left);
|
---|
4 | } else {
|
---|
5 | return left instanceof right;
|
---|
6 | }
|
---|
7 | }
|
---|
8 |
|
---|
9 | module.exports = _instanceof;
|
---|
10 | module.exports["default"] = module.exports, module.exports.__esModule = true; |
---|
Note:
See
TracBrowser
for help on using the repository browser.