list.last()
The list.last() function returns the last element of $list.
// Sass.
@use 'sass:list';
// The `list.last()` function.
@function last($list) {
@return list.nth($list, list.length($list));
}https://github.com/angular-package/sass/blob/main/list/_list.last.function.scss
Parameters
$list
The list to get the last element from.
Return
The return value is the last element of $list.
Examples
Last updated
Was this helpful?