Is there something like is-map($some_variable)
in SASS?
I have tried looking into the documentation but there is none there.
Is there something like is-map($some_variable)
in SASS?
I have tried looking into the documentation but there is none there.
You can implement it with the type-of
function, like this one:
@function is-map($var){
@return type-of($var) == 'map';
}
© 2022 - 2024 — McMap. All rights reserved.
map-get($var, $key)
is map? – Pentomic