<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [rc-js-util](./rc-js-util.md) &gt; [arrayRemoveMany](./rc-js-util.arrayremovemany.md)

## arrayRemoveMany() function

Removes each item in `itemsToRemove` from `items` (including any repeated items).

**Signature:**

```typescript
export declare function arrayRemoveMany<TItem>(items: TItem[], itemsToRemove: readonly TItem[]): number;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

items


</td><td>

TItem\[\]


</td><td>


</td></tr>
<tr><td>

itemsToRemove


</td><td>

readonly TItem\[\]


</td><td>


</td></tr>
</tbody></table>
**Returns:**

number

The number of items that were removed.

## Remarks

See [arrayRemoveMany()](./rc-js-util.arrayremovemany.md)<!-- -->.

