Skip to content

Instantly share code, notes, and snippets.

@Phunky
Created July 2, 2014 14:13
Show Gist options
  • Select an option

  • Save Phunky/f09036436be08213d4a9 to your computer and use it in GitHub Desktop.

Select an option

Save Phunky/f09036436be08213d4a9 to your computer and use it in GitHub Desktop.
@function default-map-value($map, $key, $value){
@if map-has-key($map, $key) {
// Does sass have a falsey lookup? if !map-has-key()?
}
@else {
map-merge($map, ($key, $value));
}
}
@KittyGiraudel

Copy link
Copy Markdown

not map-has-key($map, $key)

@Phunky

Phunky commented Jul 14, 2014

Copy link
Copy Markdown
Author

ta ;) struggle to find that in the docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment