<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [rc-js-util](./rc-js-util.md) &gt; [mapRemoveOneFromArray](./rc-js-util.mapremoveonefromarray_1.md)

## mapRemoveOneFromArray() function

Used with maps that store arrays. Where an array exists for a given key the value will be removed from that array.

**Signature:**

```typescript
export declare function mapRemoveOneFromArray<TKey extends object, TValue>(map: WeakMap<TKey, TValue[]>, key: TKey, value: TValue): boolean;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

map


</td><td>

WeakMap&lt;TKey, TValue\[\]&gt;


</td><td>

The `Map` to check. May be modified.


</td></tr>
<tr><td>

key


</td><td>

TKey


</td><td>

The key to lookup in `map`<!-- -->.


</td></tr>
<tr><td>

value


</td><td>

TValue


</td><td>

The value to remove.


</td></tr>
</tbody></table>
**Returns:**

boolean

true - If value was removed.

## Remarks

See [mapRemoveOneFromArray()](./rc-js-util.mapremoveonefromarray.md)<!-- -->.

