We will start out with the simplest possible tasks involving a Set. In this recipe, we'll take a look at how to add and delete items from a Set using the respective instance methods.
Adding and deleting items from a Set
Get ECMAScript Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.