6 ms·
Another (even smaller) alternative is `.join` `const classes = [some, classNames, here, foo ? 'foo' : ''].join(' ');`
by seedboot 4y ago
Another (even smaller) alternative is `.join`
`const classes = [some, classNames, here, foo ? 'foo' : ''].join(' ');`