Arrays, Iterators, Map/Set & Functional Data Pipelines
Master modern collection engineering: fast-path array operations, ES2023 immutable methods, custom iteration protocols, generators, Map/Set, and streaming pipelines.
Understanding of objects, functions, and loops.
Build functional data pipelines, implement the iteration protocols with Symbol.iterator, and leverage Map, Set, and WeakMap.
Read in order, or jump to what you need.
Every lesson builds on the one before it. Open any lesson to read the explanation, run the examples, and try the practice challenges.
- 06.01Array Architecture: Fast Paths, Mutating Operations & Immutable Transforms4 min
Explore V8 array internals. Understand contiguous memory vs dictionary mode, contrast in-place mutations with ES2023 immutable methods, and master functional pipelines.
- 06.02The Iteration Protocols: Symbol.iterator, Iterables & Generator Functions4 min
Unlock ECMAScript's iteration protocol. Create custom iterables, master generator functions (function*), and stream data lazily with yield.
- 06.03Keyed Collections: Map, Set, and Leak-Free WeakMap/WeakSet4 min
Master modern ECMAScript collections. Compare Map vs Object, enforce uniqueness with Set, and eliminate memory leaks with garbage-collectable WeakMap/WeakSet.
- 06.04PROJECT 02: Streaming Data Processing PipelineProject4 min
Build a composable, lazy-evaluating data processing pipeline from scratch. Process massive streaming datasets with constant O(1) memory using generators.
Ready to move on?
Complete the Streaming Data Processing Pipeline project processing streaming records.
Open the module self-check