← Back to Speaking

JavaScript Iteration Protocols

Calendar Icon Jun 1, 2023
JSNation
🇳🇱 Amsterdam, Netherlands

Abstract

How many ways do you know to do iteration with JavaScript and Node.js? While, for loop, for…in, for..of, .map(), .forEach(), streams, iterators, etc! Yes, there are a lot of ways! But did you know that JavaScript has iteration protocols to standardise synchronous and even asynchronous iteration? In this workshop we will learn about these protocols and discover how to build iterators and iterable objects, both synchronous and asynchronous. We will learn about some common use cases for these protocols, explore generators and async generators (great tools for iteration) and finally discuss some hot tips, common pitfalls, and some (more or less successful) wild ideas!

Slides

Location

Amsterdam, Netherlands

Event Details

Date
Jun 1, 2023
Event
JSNation
Location
Amsterdam, Netherlands
Type
Talk
Language
English 🇬🇧