Sass map-keys() Function

Last Updated:

Sass map-keys() Function

The map-keys() function returns a comma-separated list of all the keys in a map.

Example

SASS TO CSS CONVERTER
$font-weights: ("regular": 400, "medium": 500, "bold": 700); .foo{ font-weight: map-keys($font-weights); }

Syntax

map-keys($map)

Parameter Value

ValueTypeExplanation
$map Required Specifies an array.

Return Value

ValueExplanation
list Returns a comma-separated list of all the keys in $map.

Share this Page

Meet the Author