Skip to content

Instantly share code, notes, and snippets.

@Danilo-Araujo-Silva
Created March 13, 2017 18:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Danilo-Araujo-Silva/4aaa51e732465ce1b52764c25b8dad04 to your computer and use it in GitHub Desktop.
Save Danilo-Araujo-Silva/4aaa51e732465ce1b52764c25b8dad04 to your computer and use it in GitHub Desktop.
/// https://css-tricks.com/snippets/sass/deep-getset-maps/
/// Map deep get
/// @author Hugo 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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment