import { logo } from './classes' ; import { isArray , has } from './typeOf' ; export function addLogo ( str ) { return has ( str , logo ) ? str : logo + '-' + str ; } export function mergeClasses ( ... args ) { return args . filter ( ( item ) => item ) . map ( ( arg ) => isArray ( arg ) ? mergeClasses ( ... arg ) : addLogo ( arg as string ) ) . join ( ' ' ) ; }