(element: HTMLElement, propertyName: string, value: string | null)
| 10 | }; |
| 11 | |
| 12 | export const setStyleProperty = (element: HTMLElement, propertyName: string, value: string | null) => { |
| 13 | const prefix = propertyName.startsWith('animation') ? getAnimationPrefix(element) : ''; |
| 14 | element.style.setProperty(prefix + propertyName, value); |
| 15 | }; |
| 16 | |
| 17 | export const addClassToArray = (classes: string[] = [], className: string | string[] | undefined): string[] => { |
| 18 | if (className !== undefined) { |
no test coverage detected