Sass List Functions

Last Updated:

Sass List Functions

The following are the list of inbuilt list functions available in Sass language.

append() Returns a copy of a list with a value added to the end.
index() Returns the index of a value in a list.
is-bracketed() Returns whether a list has square brackets.
join() Returns a new list containing the elements of list1 followed by the elements of list2.
length() Returns the length of a list.
list-separator() Returns the name of the separator used by a list, either space or comma.
nth() Returns the element of a list at the specified index.
set-nth() Returns a copy of a list with the element at the specified index replaced with a given value.
zip() Combines every list in a list into a single list of sub-lists.

Share this Page

Meet the Author