Re:Immutable.js – Immutable Data Collections
by saurabhnanda on Saturday November 01, 2014 @02:43PM
(#8544101)
Is it possible to use this as a drop-in replacement for Angular POJOs that hold $scope data? We're hitting a whole class of bugs which are basically due to mutability of native JS objects, and we could use something like this for the most complex ng-controllers.
[ Parent
| on HN ]
Re:Immutable.js – Immutable Data Collections
by likeclockwork on Saturday November 01, 2014 @02:57PM
(#8544172)
Object.freeze, maybe?
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...