Iterators, Generators and Proxies

Use iterators, generators and proxies to make lazy sequences, walk trees and watch or guard objects.

  1. 01

    Make a Range You Can Loop Over

    • easy
    • Code
  2. 02

    Give Missing Properties a Default

    • easy
    • Code
  3. 03

    Build Lazy Iterator Helpers

    • medium
    • Code
  4. 04

    Zip and Interleave Iterables

    • medium
    • Code
  5. 05

    Walk a Tree with Generators

    • medium
    • Code
  6. 06

    Fetch Every Page with an Async Generator

    • medium
    • Code
  7. 07

    Allow Negative Array Indexes

    • medium
    • Code
  8. 08

    Make an Object Deeply Read-Only

    • medium
    • Code
  9. 09

    Enforce Property Types with a Proxy

    • medium
    • Code
    • Pro
  10. 10

    Drive a Generator Like Async/Await

    • hard
    • Code
    • Pro
  11. 11

    Watch Nested Changes with a Proxy

    • hard
    • Code
    • Pro