MODULE 06 · INTERMEDIATE

Arrays, Iterators, Map/Set & Functional Data PipelinesJavaScript Mastery · Module 6

Master modern collection engineering: fast-path array operations, ES2023 immutable methods, custom iteration protocols, generators, Map/Set, and streaming pipelines.

4 lessons16 min readingPrototypes, Collections & Asynchronous Architecture1 project
Free, self-paced, and open to everyone. No account needed.
WHAT THIS MODULE COVERS

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.

BEFORE YOU START

Understanding of objects, functions, and loops.

WHAT YOU’LL BE ABLE TO DO

Build functional data pipelines, implement the iteration protocols with Symbol.iterator, and leverage Map, Set, and WeakMap.

THE LESSON SEQUENCE

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.

  1. 06.01
    Array Architecture: Fast Paths, Mutating Operations & Immutable Transforms

    Explore V8 array internals. Understand contiguous memory vs dictionary mode, contrast in-place mutations with ES2023 immutable methods, and master functional pipelines.

    4 min
  2. 06.02
    The Iteration Protocols: Symbol.iterator, Iterables & Generator Functions

    Unlock ECMAScript's iteration protocol. Create custom iterables, master generator functions (function*), and stream data lazily with yield.

    4 min
  3. 06.03
    Keyed Collections: Map, Set, and Leak-Free WeakMap/WeakSet

    Master modern ECMAScript collections. Compare Map vs Object, enforce uniqueness with Set, and eliminate memory leaks with garbage-collectable WeakMap/WeakSet.

    4 min
  4. 06.04
    PROJECT 02: Streaming Data Processing PipelineProject

    Build a composable, lazy-evaluating data processing pipeline from scratch. Process massive streaming datasets with constant O(1) memory using generators.

    4 min
MODULE SELF-CHECK

Ready to move on?

Complete the Streaming Data Processing Pipeline project processing streaming records.

Open the module self-check