Y
Hacker News
new
|
ask
|
show
|
jobs
by
seedboot
1252 days ago
Another (even smaller) alternative is `.join`
`const classes = [some, classNames, here, foo ? 'foo' : ''].join(' ');`