JavaScript Clearing a Set


Example

You can remove all the elements in a set using the .clear() method:

mySet.clear();