source: node_modules/@babel/runtime-corejs3/helpers/esm/instanceof.js

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 
1import _Symbol from "core-js-pure/features/symbol/index.js";
2import _Symbol$hasInstance from "core-js-pure/features/symbol/has-instance.js";
3export 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.