(classes: string[])
| 25 | * with spaces, we also remove empty classes. |
| 26 | */ |
| 27 | export const createClass = function(classes: string[]): string { |
| 28 | return classes.filter(cls => cls).join(" "); |
| 29 | }; |
| 30 | |
| 31 | /** |
| 32 | * Serialize a CssStyle object into a semicolon-delimited inline-style string |