RoadmapShopEvents
Skip to main content

Home > @rushstack/node-core-library > ProtectableMap > set

ProtectableMap.set() method

Sets a value for the specified key. This operation does NOT invoke the ProtectableMap onSet() hook.

Signature:

set(key: K, value: V): this;

Parameters

ParameterTypeDescription
keyK
valueV

Returns:

this