Pinafore-Web-Client-Frontend/routes/_utils/classname.js

16 lines
241 B
JavaScript
Raw Normal View History

2018-03-15 02:52:33 +01:00
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
}