SASS | Map Functions Last Updated : 11 May, 2020 Comments Improve Suggest changes 1 Likes Like Report The SASS Map data-type is used to display one or more key-value pairs. Along with the map functions shown in the below lists, you can also use any of the SASS list functions with maps as well. The following lists contains all map functions in SASS: map-has-key($map, $key) function: This function returns a Boolean value that checks whether the given map contains the given key or not. Example: CSS map-has-key(("red": #ff0000, "yellow": #ffff00), blue) Output: false map-merge($map1, $map2) function: This function returns a map containing $map2 joined to the end of $map1. Example: CSS map-merge(("red": #ff0000, "yellow": #ffff00), ("blue": #0000ff) Output: ("red": #ff0000, "yellow": #ffff00, "blue": #0000ff) map-keys($map) function: This function returns the list of the keys in the given map. Example: CSS map-keys(("red": #ff0000, "yellow": #ffff00)) Output: ("red", "yellow") map-remove($map, $keys) function: This function returns a map without the given keys. Example: CSS map-remove(("red": #ff0000, "yellow": #ffff00), "red") Output: ("yellow": #ffff00) map-values($map) function: This function returns the list of the values in the given map. Example: CSS map-values(("red": #ff0000, "yellow": #ffff00)) Output: (#ff0000, #ffff00) map-get($map, $key) function: This function returns the value associated with the given key. Example: CSS map-get(("blue": #0000ff, "yellow": #ffff00), "blue") Output: #0000ff Create Quiz Comment S Slash_IT Follow 1 Improve S Slash_IT Follow 1 Improve Article Tags : Web Technologies CSS SASS Explore CSS Introduction 3 min read CSS Syntax 3 min read CSS Selectors 6 min read CSS Comments 2 min read CSS Colors 5 min read CSS Borders 5 min read CSS Margins 4 min read CSS Height and Width 4 min read CSS Outline 4 min read CSS Fonts 4 min read Like