DEV Community

Discussion on: Once and for all: const in JavaScript is not immutable

Collapse
 
valentinogagliardi profile image
Valentino Gagliardi

Object.freeze is shallow though :-)

Collapse
 
itsjzt profile image
Saurabh Sharma • Edited

So that's why there libraries like Immutable.js, but it would be great if JS has something for making values immutable.