News for hackers. Stuff that matters.
Re:Immutable Data Structures That Are Compatible with Normal... by kasbah on Saturday August 12, 2017 @04:21PM (#14999762)
It appears equality checks for objects is not supported i.e.:

    Immutable({a: 1}) !== Immutable({a: 1})
There is no built in equality function either [1] so that seems like that's a big advantage Immutable.js has over this. Maybe seamless-immutable-diff [2] could be a way to do it but I am not sure on the performance.

[1]: https://github.com/rtfeldman/seamless-immutable/issues/186 [2]: https://www.npmjs.com/package/seamless-immutable-diff

There are no comments on this comment yet.