Skip to content

Instantly share code, notes, and snippets.

@jdsteinbach
Last active August 29, 2015 14:08
Show Gist options
  • Select an option

  • Save jdsteinbach/a7ef48a20fbede0e337f to your computer and use it in GitHub Desktop.

Select an option

Save jdsteinbach/a7ef48a20fbede0e337f to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// libsass (v3.0)
// ----
$simple-map: (
key1: value1,
key2: value2
);
$map-keys: map-keys($simple-map);
$map-values: map-values($simple-map);
.simple-map {
map-keys: $map-keys;
map-values: $map-values;
@each $key in $map-keys {
#{$key}: map-get($simple-map, $key);
}
@if map-has-key($simple-map, key1) {
map-has-key: working;
}
}
.simple-map {
map-keys: key1, key2;
map-values: value1, value2;
key1: value1;
key2: value2;
map-has-key: working; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment