Sass map-keys() Function
You are Here:
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
Value | Type | Explanation |
---|---|---|
$map | Required | Specifies an array. |
Return Value
Value | Explanation |
---|---|
list | Returns a comma-separated list of all the keys in $map. |
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.