Sass map-remove() Function

You are Here:

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
$mapRequiredSpecifies an array.
$keys...RequiredSpecifies a list of keys to be removed from an array.

Return Value

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

Reminder

Hi Developers, we almost covered 99.1% of Sass Tutorials with examples for quick and easy learning.

We are working to cover every Single Concept in Sass.

Please do google search for:

Join Our Channel

Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.

This channel is primarily useful for Full Stack Web Developer.

Share this Page

Meet the Author