Instantly share code, notes, and snippets.

View arrayToString.scss
@function arrayToString($list, $separator: " ") {
$str: null;
@each $item in $list {
$i: index($list, $item);
@if $i == 1 {
$str: $str #{$item};
}
@else {
$str: $str#{$separator} #{$item};
}