May 2018
Intermediate to advanced
376 pages
9h 22m
English
After reading lesson 24, you will
Sets are a new type of object in JavaScript. A set is a unique collection of data. It can store any data type but won’t store duplicate references to the same value. Sets are iterables, so you can use spread and for..of with them. Sets are most closely related to arrays; however, when you use an array your focus is generally on the individual items in the array. When dealing with a set, you’re usually dealing with the set as a whole.
Imagine you’re building a video game where the player starts ...
Read now
Unlock full access