map.has-keys()
// Sass.
@use 'sass:list';
@use 'sass:map';
// The `map.has-keys()` function.
@function has-keys($map, $keys...) {
$has: ();
@each $key in $keys {
$has: list.append(
$has,
if(
list.separator($key) == comma,
map.has-key($map, $key...),
map.has-key($map, $key)
)
);
}
@return if(list.index($has, false), false, true);
}https://github.com/angular-package/sass/blob/main/map/_map.has-keys.function.scss
Parameters
$map
$map$keys...
$keys...Return
Examples
Last updated