instanceof.js 484 B

1234567891011121314
  1. var _Symbol = require("@babel/runtime-corejs3/core-js/symbol");
  2. var _Symbol$hasInstance = require("@babel/runtime-corejs3/core-js/symbol/has-instance");
  3. 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. }
  10. module.exports = _instanceof;
  11. module.exports["default"] = module.exports, module.exports.__esModule = true;