.delete()

BrandonDusch's avatar
Published Jun 16, 2022
Contribute to Docs

The .delete() method removes a specified value from the Set and returns a boolean indicating whether or not the deletion was successful.

Syntax

set.delete(value);

The value is of a valid data type.

Codebyte Example

Code
Output
Loading...

All contributors

Contribute to Docs

Learn JavaScript on Codecademy