CustomStateSet: delete() method

فهرست فصل‌ها دانلود آرشیوناشر

MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونه‌کد

{{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}}