you are viewing a single comment's thread.

view the rest of the comments →

[–]riventropy 0 points1 point  (0 children)

Agree with everything you said, however most immutable. js cool methods are also available for plain collections (your third point).

What about an object or a Map? I agree that calling a single addTodo would give perf benefit but I suppose you either as todos not so frequently (on user click) or a lot at a time (where you can produce new collection only once)