(...values: (string | null | undefined | boolean)[])
| 1 | import { isNotUndefined } from './Utils' |
| 2 | |
| 3 | export const classNames = (...values: (string | null | undefined | boolean)[]): string => { |
| 4 | return values |
| 5 | .map((value) => (typeof value === 'string' ? value : null)) |
| 6 | .filter(isNotUndefined) |
| 7 | .join(' ') |
| 8 | } |
no test coverage detected