5 ms·
instanceof cannot be determined statically because I can do... const a = {}; Object.setPrototypeOf(a, SomethingElse);
by Havvy 11y ago
instanceof cannot be determined statically because I can do...
const a = {};
Object.setPrototypeOf(a, SomethingElse);
- pm24601 11y agoreally? even on a frozen object? Remember I have said const PLUS Object.freeze() Both are needed to get the true immutable effect.