get Method

Looks up a value by its key.

get(key: K): undefined | V

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

Parameter Type Description
key K The key to search for

Returns - undefined | V

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

Defined in

Last Updated: 16 May, 2024