deleteAll Method
Delete multiple items from the set, raising onBatchDeleted only once after all items are deleted. This is more efficient than calling delete in a loop when listeners need not be notified of each individual deletion.
deleteAll(items: Iterable<T, any, any>): number
@returns The number of items that were actually deleted (i.e., were present in the set).
| Parameter | Type | Description |
|---|---|---|
| items | Iterable<T, any, any> | The items to delete. |
Returns - number
The number of items that were actually deleted (i.e., were present in the set).
Defined in
Last Updated: 13 March, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.