copy-list()
리스트를 복제해 새로운 리스트로 반환하는 유틸리티 함수
용도
사용법
$direction: left bottom right top;
@debug copy-list($direction); // left bottom right top (복제된 리스트) 반환로직
@function copy-list($list) {
$copyed-list: ();
@each $item in $list {
$copyed-list: append($copyed-list, $item);
}
@return $copyed-list;
}참고
Last updated