Skip to main content

Function: mapToArray()

function mapToArray<K, V>(map): [K, V][];

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

Type Parameters​

Type Parameter
K
V

Parameters​

ParameterTypeDescription
mapPick<Map<K, V>, "forEach">-

Returns​

[K, V][]