last()
리스트의 마지막 아이템 반환 유틸리티 함수
용도
사용법
$direction: left bottom right top;
@debug last($direction); // top (리스트의 마지막 아이템) 반환@debug last(map-keys($colors)); // gray (마지막 컬러 이름) 반환로직
@function last($list) {
@return nth($list, length($list));
}참고
Last updated