setDictionaryItemconstant

setDictionaryItem: <T>(dict: MutableDictionary<T>, key: string, value: T) => T
Return
unknown
The value that was set.

Set a single named item on a dictionary object (by reference) and return its value.

Examples

setDictionaryItem(dict, "a", 1); // 1