The .clear() method deletes all values from a Set and returns undefined.
.clear()
Set
undefined
set.clear();
No parameters are needed for the .clear() method.
Favicon IconArrow Chevron Left IconCodeOutputArrow Chevron Right IconLoading...Run