Deletes an item from the set.
delete(item)
item
The item to delete from the set.
true if the item was deleted, otherwise false.
true
false
let set = new Set() set.add("hello") set.delete("hello")