export function c(input: Array | object): string { const array = Array.isArray(input) ? input.filter((el: any) => typeof el === 'string') : Object.keys(input).filter((key: keyof object) => !!input[key]); return array.join(' '); } export function s(styles: object): string { return Object.keys(styles) .filter((key: keyof object) => !!styles[key]) .map((key: keyof object) => `${key}:${styles[key]}`) .join(';'); }