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.

19 lines (10 loc) 580 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; [\_Map](./rc-js-util._map.md) &gt; [addToSet](./rc-js-util._map.addtoset.md) ## \_Map.addToSet property Used with maps that store sets. Where a set exists for a given key the value will be added to that set, otherwise a new set will be created containing the value. **Signature:** ```typescript static readonly addToSet: typeof mapAddToSet; ``` ## Remarks See [mapAddToSet()](./rc-js-util.mapaddtoset.md)<!-- -->.