const a = {b: "foo"};
a.b = "bar"; const a = icepick.freeze({b: "foo"});
Granted, that's not as elegant as built-in support but that is literally what I'm doing at the moment when I want immutability.All a functional language really needs is first class functions. JS has had that since the very beginning.