MCPcopy Create free account
hub / github.com/denoland/std / getReverse

Method getReverse

data_structures/unstable_bidirectional_map.ts:127–129  ·  view source on GitHub ↗

* Returns the key associated with the specified value. If no key is * associated with the specified value, `undefined` is returned. * * @param value The value to search for. * @returns The key associated with the specified value, or `undefined` if no * key is found. * * @example

(value: V)

Source from the content-addressed store, hash-verified

125 * ```
126 */
127 getReverse(value: V): K | undefined {
128 return this.#reverseMap.get(value);
129 }
130
131 /**
132 * Removes the element with the specified key. If the element does not exist,

Calls 1

getMethod · 0.65

Tested by

no test coverage detected