• Returns the value associated with the given key. Returns the defaultValue if the key is not present in the map. The map won't be updated with the defaultValue, see computeIfAbsent instead.

    See

    Type Parameters

    Type Parameters

    • K

    • V

    Parameters

    • map: PickMap<K, V, "get" | "has">

      a map

    • key: K

      the queried key

    • defaultValue: V

      the default value if the queried key is not present

    Returns V

Generated using TypeDoc