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

ProtectableMap.get() method

Retrieves the value for the specified key.

Signature:

get(key: K): V | undefined;

Parameters

Parameter Type Description
key K  

Returns:

V | undefined

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