The repo aims to show the concepts of
- the behaviorial design pattern
(Async)Iterator (Async)Iterableand how JavaScript facilitates them.- (async) generator functions and the
(Async)Generator. - the
p-maputility to map promises and Iterables concurrently.
See Iteratoron Refactoring Guru , aswell as Iteration protocols on MDN.
The sources of this repo are made for Bun.
$ bun run src/01_iterator