RoadmapShopEvents
Skip to main content

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

ProtectableMap.get() method

Retrieves the value for the specified key.

Signature:

get(key: K): V | undefined;

Parameters

ParameterTypeDescription
keyK

Returns:

V | undefined

undefined if the value is undefined OR if the key is missing; otherwise returns the value associated with the key.