instanceof.js 364 B

12345678910111213
  1. var _Symbol$hasInstance = require("../core-js/symbol/has-instance");
  2. var _Symbol = require("../core-js/symbol");
  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;