The Map to reverse.
A new Map with the entries of the original Map in reverse order.
This function creates a new Map with the entries of the original Map in reverse order. The original Map is not modified.
K - The type of the keys in the Map.
V - The type of the values in the Map.
mapReverse(new Map([['a', 1], ['b', 2], ['c', 3]]));;
//=> [['c', 3], ['b', 2], ['a', 1]]
Generated using TypeDoc
Reverses the order of entries in a Map.