simple-squiggle

A restricted subset of Squiggle
Log | Files | Refs | README

instanceof.js (326B)


      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, module.exports.__esModule = true, module.exports["default"] = module.exports;