1
0
mirror of https://github.com/nolanlawson/pinafore synced 2024-12-12 18:28:03 +01:00
Pinafore-Web-Client-Frontend/routes/_utils/classname.js
2018-03-14 18:52:33 -07:00

16 lines
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
}