kopia lustrzana https://github.com/nolanlawson/pinafore
16 wiersze
241 B
JavaScript
16 wiersze
241 B
JavaScript
|
export function classname () {
|
||
|
let res = ''
|
||
|
let len = arguments.length
|
||
|
let i = -1
|
||
|
while (++i < len) {
|
||
|
let item = arguments[i]
|
||
|
if (item) {
|
||
|
if (res) {
|
||
|
res += ' '
|
||
|
}
|
||
|
res += item
|
||
|
}
|
||
|
}
|
||
|
return res
|
||
|
}
|