Vercel/src/utility/css.ts
Sam Becker df11a86181 Init
2023-09-05 09:00:57 -05:00

7 lines
158 B
TypeScript

export const cc = (
...classes: (string | boolean | undefined)[]
): string =>
classes
.filter(s => typeof s === 'string' && s.length)
.join(' ');