Skip to content

TwoWayMap.getKey method

TwoWayMap › getKey

Gets a key by its value.

Signature:

getKey(value: Value): Key | null

Parameters:

ParameterTypeDescription
valueValueThe value.

Returns: Key | null — The key, or null if the map has no such value.