js-util

Home > rc-js-util > arrayRemoveMany

arrayRemoveMany() function

Removes each item in itemsToRemove from items (including any repeated items).

Signature:

export declare function arrayRemoveMany<TItem>(items: TItem[], itemsToRemove: readonly TItem[]): number;

Parameters

Parameter Type Description
items TItem[]  
itemsToRemove readonly TItem[]  

Returns:

number

The number of items that were removed.

Remarks

See arrayRemoveMany().