addAll Method

Add multiple items to the set, raising onBatchAdded only once after all items are added. This is more efficient than calling add in a loop when listeners need not be notified of each individual addition.

addAll(items: Iterable<T, any, any>): number

@returns The number of items that were actually added (i.e., were not already present).

Parameter Type Description
items Iterable<T, any, any> The items to add.

Returns - number

The number of items that were actually added (i.e., were not already present).

Defined in

Last Updated: 13 March, 2026