( elem: HTMLElement, className: string, bool: boolean )
| 1 | export function toggleClass( |
| 2 | elem: HTMLElement, |
| 3 | className: string, |
| 4 | bool: boolean |
| 5 | ) { |
| 6 | if (bool === true) return elem.classList.add(className); |
| 7 | elem.classList.remove(className); |
| 8 | } |
| 9 | |
| 10 | export function createElement<T extends HTMLElement>( |
| 11 | tag: keyof HTMLElementTagNameMap, |
no outgoing calls
no test coverage detected
searching dependent graphs…