mapValues (Function)

Signature: mapValues(map: Map<string, t0>) -> List<t0>

Description: All values of the map as a list. Order matches mapKeys.

Parameters

  • map (Map<string, t0>): The map

Returns: List<t0>

Example

let values = mapValues({"a": 1})  // [1]
values = mapValues ["a" => 1]  // [1]