News for hackers. Stuff that matters.
Re:JavaScript Array.push is 945x faster than Array.concat by wolco on Thursday May 23, 2019 @11:53AM (#19992856)
It is not much better. It is something different. It's popular because of the way React works. It is not always correct because it is easier to understand how state changes. Using array push over concat shouldn't make understanding more difficult and using the slower function for this reason is missing the point.

There are no comments on this comment yet.