@babel/plugin-transform-instanceof
function _instanceof(left, right) {
right != null &&
typeof Symbol !== "undefined" &&
right[Symbol.hasInstance]
return right[Symbol.hasInstance](left);
} else {
return left instanceof right;
}
_instanceof(foo, Bar);
{
"plugins": ["@babel/plugin-transform-instanceof"]
}
require("@babel/core").transformSync("code", {
});