Created
March 13, 2017 18:53
-
-
Save Danilo-Araujo-Silva/4aaa51e732465ce1b52764c25b8dad04 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// 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