Sass map-remove() Function

Last Updated:

Sass map-remove() Function

The map-remove() function returns a copy of a map without any values associated with keys.

Example

SASS TO CSS CONVERTER
//Check your console $font-weights: ("regular": 400, "medium": 500, "bold": 700); @debug map-has-key($font-weights, "regular"); // true $font-weights: map-remove($font-weights, "regular"); @debug map-has-key($font-weights, "regular"); // false

Syntax

map-remove($map, $keys...)

Parameter Value

ValueTypeExplanation
$map Required Specifies an array.
$keys... Required Specifies a list of keys to be removed from an array.

Return Value

ValueExplanation
array Returns a copy of $map without any values associated with $keys.

Share this Page

Meet the Author