Grouping iterables into objects and maps
2 May 2024
One of the features that landed in ECMAScript 2024 was the ability to group synchronous iterables (e.g. arrays) into objects or maps. Let's take a look!
2 May 2024
One of the features that landed in ECMAScript 2024 was the ability to group synchronous iterables (e.g. arrays) into objects or maps. Let's take a look!
31 Mar 2019
Wrapping up my three-part guide to JavaScript generators, in this article we'll take a look at how generators compare with the later async/await
combo, with which they share much in common, and also see how generators can delegate tasks to other generators.
10 Mar 2019
In this, the second part in my three-part guide to JavaScript generators, we'll see how generator functions lend themselves particularly to asynchronous situations - but hiding that asynchronicity away behind synchronous-looking code flows.
25 Feb 2019
Welcome to JavaScript generators! In this article, the first in a three-part guide, I'm going to be introducing the basics of genereator functions, what they're about, how you can use them and give a hint to their deeper capabilities that we'll meet later in the series.
1 May 2018
In this article I'll be taking a look at JavaScript iterables, iterators, and the two protocols that govern them. Iterators control how an object can be iterated over, while an iterable can be fed to constructs such as for-of
or spread syntax.