export function mergeClasses ( ... values ) { const deduped = ( values . filter ( Boolean ) as string [ ] ) . reduce ( ( set , x ) => { x . split ( " " ) . forEach ( y => { set . add ( y ) ; } ) ; return set ; } , new Set < string > ( ) ) ; return Array . from ( deduped ) . join ( " " ) ; }