sass-site/source/code-snippets/_example-map-get.html.erb

12 lines
390 B
Plaintext
Raw Normal View History

2018-10-23 22:01:12 +02:00
<% example(autogen_css: false) do %>
$font-weights: ("regular": 400, "medium": 500, "bold": 700);
2018-10-23 22:01:12 +02:00
@debug map.get($font-weights, "medium"); // 500
@debug map.get($font-weights, "extra-bold"); // null
===
$font-weights: ("regular": 400, "medium": 500, "bold": 700)
2018-10-23 22:01:12 +02:00
@debug map.get($font-weights, "medium") // 500
@debug map.get($font-weights, "extra-bold") // null
2018-10-23 22:01:12 +02:00
<% end %>