sass-site/source/code-snippets/example-map-get.liquid
2023-06-05 20:30:58 +02:00

12 lines
399 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 %}