by Havvy · 11y ago · 0 comments
const a = {}; Object.setPrototypeOf(a, SomethingElse);
Remember I have said const PLUS Object.freeze() Both are needed to get the true immutable effect.