Skip to content

Welshman Docs / @welshman/lib / addToKey

Function: addToKey() ​

addToKey<T>(m, k, v): void

Defined in: packages/lib/src/Tools.ts:1049

Adds value to Set at key in object

Type Parameters ​

• T

Parameters ​

m ​

Record<string, Set<T>>

Object mapping keys to Sets

k ​

string

Key to add to

v ​

T

Value to add

Returns ​

void