_instanceof.js 344 B

123456789101112
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = _instanceof;
  6. function _instanceof(left, right) {
  7. if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
  8. return !!right[Symbol.hasInstance](left);
  9. } else {
  10. return left instanceof right;
  11. }
  12. }