clear()
removes all elements from a Set object.
set.size
becomes 0- the iterator
set.entries()
will not contain any items - any call to
set.has()
returns false - returns
undefined
Links
How the implementation is specified.
The MDN docs.
Announcement of this kata on twitter.