.delete()

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

us
Visit us
code
Hide code
Code
Output
Hide output
Hide output
Loading...

All contributors

Looking to contribute?

Learn JavaScript on Codecademy