sass-site/source/code-snippets/example-map-get.liquid
2023-05-29 17:39:35 +00:00

12 lines
385 B
Plaintext

{% codeExample 'map-get', false %}
$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
{% endcodeExample %}