UNPKG

rc-js-util

Version:

A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.

72 lines (34 loc) 941 B
<!-- 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)<!-- -->.