Function mapToArray

  • Converts a map to an array. If the map is a collection wrapper it will return the backed array.

    Type Parameters

    • K
    • V

    Parameters

    • map: Map<K, V>

    Returns [K, V][]