dictionary.set()
The dictionary.set() function sets the $value under the $key in a global dictionary.
// Variables.
@forward 'dictionary.variables';
@use 'dictionary.variables' as variables;
// Modules.
@use '../../map';
// The `translator.dictionary-set()` or `dictionary.set()` function.
@function set($key, $value) {
variables.$dictionary: map.set(variables.$dictionary, $key, $value);
@return variables.$dictionary;
}https://github.com/angular-package/sass/blob/main/translator/dictionary/_dictionary.set.function.scss
Parameters
$key
$keyA key under which $value is set in a global dictionary.
$value
$valueA value to set under the $key of global dictionary.
Return
The return value is a global dictionary with updated $value in the $key.
Examples
Last updated
Was this helpful?