@babel/plugin-transform-instanceof

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