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>): number

@returns The number of items that were actually deleted (i.e., were present in the set).

Parameter Type Description
items Iterable<T> 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: 27 May, 2026