JavaScript Generators: The New Opening
summary
Claim: the new iterator prototype (stage 4) plus iterator helpers add array-like methods (map, filter, groupBy, take, toArray, drop) to iterators so pipelines run lazily. Benchmarks compare arrays vs iterators across datasets and show iterators can be dramatically faster — up to three orders of magnitude for multiple maps on large inputs — while tiny tests vary and JIT/dead-code elimination matter. Result: a lazy, memory‑efficient pipeline is available now and will become the canonical place for future data APIs.
AI-written summary · about
