Skip to content

Instantly share code, notes, and snippets.

@jackie
Created July 24, 2014 14:46
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 jackie/a65bb078c8c9eb4bbb57 to your computer and use it in GitHub Desktop.
Save jackie/a65bb078c8c9eb4bbb57 to your computer and use it in GitHub Desktop.
@function map-me($map, $keys) {
@each $key in $keys {
@if map-has-key($map, $key) {
$map: map-get($map, $key);
}
} // each key in keys
@return $map;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment