format
typescript
HashSet.Remove(item)class: HashSet
description
Removes an element from the collection.
parameter
| param_name | type | description |
|---|---|---|
| item | T|null | The value of the element to remove. |
reture
| type | description |
|---|---|
void |
code example
typescript
let myHashSet = new HashSet<String>(String);
// Add elements to myHashSet
myHashSet.Add("apple");
myHashSet.Add("banana");
myHashSet.Add("orange");
// Remove the element "apple"
myHashSet.Remove("apple");