sass-site/source/code-snippets/_example-map-get.html.erb
2018-10-23 13:42:40 -07:00

12 lines
390 B
Plaintext

<% example(autogen_css: false) do %>
$font-weights: ("regular": 400, "medium": 500, "bold": 700);
@debug map-get($font-weights, "medium"); // 500
@debug map-get($font-weights, "extra-bold"); // null
===
$font-weights: ("regular": 400, "medium": 500, "bold": 700)
@debug map-get($font-weights, "medium") // 500
@debug map-get($font-weights, "extra-bold") // null
<% end %>