JavaScript
Iterators and Generators: The Machinery Behind for...of
How the iterator protocol and generator functions work under the hood, and where they solve real problems like pagination and lazy sequences.
3 min read
Tag
3 articles
How the iterator protocol and generator functions work under the hood, and where they solve real problems like pagination and lazy sequences.
A practical guide to choosing between Promise.all, allSettled, race, and any, with the failure modes each one is actually designed to handle.
A precise walkthrough of how the JS event loop orders microtasks and macrotasks, with the interleaving bugs that actually bite in production code.