Methods
map-next($map, $key) → {*|null}
Retrieves the value of the adjacent, next key in a map, if one exists. The idea is, to retrieve the next key, based on a current one, to go one step further, which is helpful for things like escalating to the next breakpoint for example.
Parameters:
Name | Type | Description |
---|---|---|
$map |
Map | the map to use |
$key |
String | the current key, from which we want to go to the next |
Returns:
the value of the next key or null if there is none
- Type
- * | null
Example
map-next($foo-map, 'small')
=> value of $foo-map.medium