Methods
map-get-deep($map, $keys) → {*|null}
Retrieve a value deeply nested in a map, defined by a path of keys.
Parameters:
Name | Type | Description |
---|---|---|
$map |
Map | the map to search in |
$keys |
String | List.<String> | the keys to traverse down in the map |
Returns:
the value at the defined key path or null if not defined
- Type
- * | null
Example
map-get-deep($foo-map, 'level1', 'level2')
=> value of $foo-map.level1.level2