list.extract-map()
The list.extract-map() gets and removes the map from the list.
// Functions.
@use 'get/get.map.function';
@use 'remove/remove.map.function';
// The `list.extract-map()` function.
@function extract-map($list) {
@return (map: get.map($list), list: remove.map($list));
}Github files.
Parameters
$list
$list A list from which the map is extracted.
Return
The return value is a map with extracted from $list map in map key, and list without map.
Examples
// Use.
@use 'angular-package/sass/list';
// Examples.
Last updated
Was this helpful?