Overview
Extension for sass:list module
Get
list.get-bool()
Returns the list with elements of the bool type or null.
list.get-list()
Returns the list with elements of the list type or null.
list.get-map()
Returns the list with elements of the map type or null.
list.get-number()
Returns the list with elements of the number type or null.
list.get-string()
Returns the list with elements of the string type or null.
list.get-type()
Returns the list with elements of the given type or null.
Has
list.has-bool()
Returns the bool indicating the given list contains any, all or only bool value.
list.has-list()
Returns the bool indicating the given list contains a list elements.
list.has-map()
Returns the bool indicating the given list contains a map elements.
list.has-number()
Returns the bool indicating the given list contains elements of number type.
list.has-string()
Returns the bool indicating the given list contains elements of string type.
list.has-type()
Returns the bool indicating the given list contains the specified type.
list.has-value()
Returns the bool indicating the given list contains the given value.
Remove
list.remove-duplicate()
list.remove-list()
list.remove-map()
list.remove-nth()
list.remove-number()
list.remove-range()
list.remove-string()
list.remove-type()
list.remove-value()
List
list.append()
Returns a copy of $list
with $val
added to the end, and/or with added multiple $values
.
list.empty()
Returns the bool
indicating whether the list is empty.
list.first()
Returns the first list element of the given $list
.
list.from()
Returns the list of the elements from the given $from
index to the end of the $list
.
list.has()
Returns the bool
indicating the given $list
contains the $value
and/or given $values
.
list.index()
Returns the index and/or indexes of the given $values
.
list.indexes()
Returns all occurred indexes of the given $value
and/or optional arbitrary $values
checked by the given $operator
.
list.insert-nth()
Returns the $list
with $value
inserted into index $n
.
list.join()
Returns a new list containing the elements of $list1
followed by the elements of $list2
.
list.last()
Returns the last element of the given $list
.
list.limit()
Returns the list of the elements from the given offset limited by the given limit.
list.nth()
Returns the element of $list
at index $n
or elements of given indexes $nts
.
list.range()
Returns the list from the $list
of the given range $from
to $to
.
list.select()
Returns the list with elements selected by comparison.
list.to()
Returns the $list
elements from the first index to the given $to
index.
list.type()
Returns the type of all or selected $n
indexes of the $list
.
Last updated