Now, we'll take a look at the corresponding weak data structure, WeakSet. In this recipe, we'll look at how to add and delete items from a WeakSet, using the respective instance methods, and at some restrictions on membership.
Adding and deleting items from WeakSet
Getting ready
This recipe assumes that you already have a workspace that allows you to create and run ES modules in your browser. If you don't, refer to the first two chapters.
How to do it...
- Open your command-line application, and navigate to your workspace.
- Create a new folder named 12-03...