(element: any, styleName: string, styleValue?: string | null)
| 121 | } |
| 122 | |
| 123 | export function hasStyle(element: any, styleName: string, styleValue?: string | null): boolean { |
| 124 | const value = element.style[styleName] || ''; |
| 125 | return styleValue ? value == styleValue : value.length > 0; |
| 126 | } |
| 127 | |
| 128 | export function hasClass(element: any, className: string): boolean { |
| 129 | return element.classList.contains(className); |
no outgoing calls
no test coverage detected
searching dependent graphs…