News for hackers. Stuff that matters.
Re:Some features that every JavaScript developer should know... by chrismorgan on Tuesday April 15, 2025 @03:01AM (#43689807)
Over time, these performance characteristics are very likely to change in Iterator’s favour. (To what extent, I will not speculate.)

JavaScript engines have put a lot of effort into optimising Array, so that these sorts of patterns can run significantly faster than they have any right to.

Iterators are comparatively new, and haven’t had so much effort put into them.

There are no comments on this comment yet.