instanceof.js 330 Bytes
"use strict";

var _Symbol$hasInstance = require("babel-runtime/core-js/symbol/has-instance")["default"];

exports["default"] = function (left, right) {
  if (right != null && right[_Symbol$hasInstance]) {
    return right[_Symbol$hasInstance](left);
  } else {
    return left instanceof right;
  }
};

exports.__esModule = true;