Hacker News new | ask | show | jobs
by lib-dev 976 days ago
How?
1 comments

Because it uses the same object for all items in the array. Luckily, they are just placeholders and aren't being mutated.
Ah interesting. I see it now. Thanks for the reply.