@yookue/ts-lang-utils
    Preparing search index...

    Function getKey

    • Returns the key with the given value

      Type Parameters

      • K
      • V

      Parameters

      • Optionalmap: Map<K, V> | ReadonlyMap<K, V>

        the map to inspect

      • Optionalvalue: V

        the value to lookup

      • OptionaldefaultKey: K

        the default key when nothing matches the given value

      Returns undefined | K

      the key with the given value

      David Hsing