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.

78 lines (36 loc) 1.08 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [rc-js-util](./rc-js-util.md) &gt; [DirtyCheckedUniqueCollection](./rc-js-util.dirtycheckeduniquecollection.md) &gt; [mapInitializeAdd](./rc-js-util.dirtycheckeduniquecollection.mapinitializeadd_1.md) ## DirtyCheckedUniqueCollection.mapInitializeAdd() method **Signature:** ```typescript static mapInitializeAdd<TKey extends object, TValue>(map: WeakMap<TKey, IDirtyCheckedUniqueCollection<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, [IDirtyCheckedUniqueCollection](./rc-js-util.idirtycheckeduniquecollection.md)<!-- -->&lt;TValue&gt;&gt; </td><td> </td></tr> <tr><td> key </td><td> TKey </td><td> </td></tr> <tr><td> value </td><td> TValue </td><td> </td></tr> </tbody></table> **Returns:** boolean