Function invertMap

  • Reverses keys and values for a given map

    Type Parameters

    • T1
    • T2

    Parameters

    • map: Map<T1, T2>

      Map to invert

    Returns Map<T2, T1>

    Inverted map