.clear()

Term side of the Card
Topic: Set
Unit title: .clear()
Categories: Method
Explanation side of the Card

Explanation: The method that removes all elements from a `Set` object, leaving it with a size of zero.

Browser compatibility:
  • The chrome browser supports this feature starting from version 38
  • The edge browser supports this feature starting from version 12
  • The firefox browser supports this feature starting from version 19
  • The safari browser supports this feature starting from version 8
Availability: