Open In App

Sass sass:list Module

SASS provides many built-in modules that contain various useful functions and some mixins that makes it easy to use. All built-in modules begin with sass: to show that they are different from other modules and a part of SASS itself. One of the built-in modules is the sass:list module that makes it possible to access and modify values in a list.

Note: In Sass, each map counts as a list containing two elements for each key/value pair. For example, (1: 2, 3: 4) counts as (1 2, 3 4). So all the below discussed functions work for maps as well as lists. This module lets you access and modify lists.



The following methods are available in the sass:list module:

Article Tags :