• Get, or insert then get, a value from the record.

    Type Parameters

    • V

    Parameters

    • map: Record<string, V>

      Record to get the value from.

    • key: string

      Key of the value to retrieve

    • valueGenerator: (() => V)

      Method used to generate a value for the key if it is not currently in the record.

        • (): V
        • Returns V

    Returns V

Version :