get Method

Looks up a value by its key.

get(key: K): V | undefined

Parameter Type Description
key K The key to search for

Returns - V | undefined

the value associated with the key, or undefined if the key is not present in the dictionary.

Defined in

Last Updated: 13 June, 2024