Hacker News new | ask | show | jobs
by awestroke 3126 days ago
When you insert into an immutablejs collection, a copy is not made. It's reusing a reference to the old object. That means iteration is a bit slower while insertion and similar operations is faster, which is an acceptable tradeoff