Back to Content

CustomStateSet: delete() method

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

latest441 B
Original Source

{{APIRef("Web Components")}}

The delete() method of the {{domxref("CustomStateSet")}} interface deletes a single value from the CustomStateSet.

Syntax

js-nolint
delete(value)

Parameters

  • value
    • : value to remove from the CustomStateSet.

Return value

Returns true if value was in the CustomStateSet; otherwise false.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}