3 ms·I think what you're looking for is: const x = Object.freeze(new SomeClass())by wefarrell 4y agoI think what you're looking for is: const x = Object.freeze(new SomeClass())