javascript - Why should I use immutablejs over object.freeze? -
i have researched on net benefits of immutablejs on object.freeze() didn't find satisfying! my question why should use library , work non native data structures when can freeze plain old javascript object? i don't think understood immutablejs offers. it's not library turns objects immutable, it's library around working immutable values. without repeating docs , mission statement , i'll state 2 things provides: types. implemented (immutable) infinite ranges, stacks, ordered sets, lists, ... all of types implemented persistent data structures . i lied, here's quote of mission statement: immutable data cannot changed once created, leading simpler application development, no defensive copying, , enabling advanced memoization , change detection techniques simple logic. persistent data presents mutative api not update data in-place, instead yields new updated data. i urge read articles , videos link , more persistent data structures (...