@function setStyle($map, $object, $style) { @if map-has-key($map, $object) { @return map-get(map-get($map, $object), $style); } @warn "The key ยด#{$object} is not available in the map."; @return null; } /// Map deep get /// @author Kitty Giraudel /// @access public /// @param {Map} $map - Map /// @param {Arglist} $keys - Key chain /// @return {*} - Desired value @function map-deep-get($map, $keys...) { @each $key in $keys { $map: map-get($map, $key); } @return $map; }