.clear()
The .clear()
method deletes all values from a Set
and returns undefined
.
Syntax
set.clear();
No parameters are needed for the .clear()
method.
The .clear()
method deletes all values from a Set
and returns undefined
.
set.clear();
No parameters are needed for the .clear()
method.