Sass map-values() Function

Last Updated:

Sass map-values() Function

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

Example

SASS TO CSS CONVERTER
$font-weights: ("regular": 100, "medium": 400, "bold": 900); .foo{ font-weight: map-values($font-weights); // 100, 400, 900 }

Syntax

map-values($map)

Parameter Value

ValueTypeExplanation
$map Required Specifies an array.

Return Value

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

Share this Page

Meet the Author