Back to Content

CustomStateSet: clear() method

files/en-us/web/api/customstateset/clear/index.md

latest323 B
Original Source

{{APIRef("Web Components")}}

The clear() method of the {{domxref("CustomStateSet")}} interface removes all elements from the CustomStateSet object.

Syntax

js-nolint
clear()

Parameters

None.

Return value

Undefined.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}