class Base {}
class Derived extends Base {
static [Symbol.hasInstance](instance) {
return false;
}
}
const d = new Derived();
console.log(d instanceof Derived, d instanceof Base, Object.getPrototypeOf(Derived) === Base); Post #3457
2.13K
CHALLENGE
- 👍 3
- 🔥 2
- ❤ 1