(el, name)
| 1 | import { isUndefined } from './type-check'; |
| 2 | |
| 3 | export function addClass(el, name) { |
| 4 | name.split(' ').forEach((cls) => { |
| 5 | if (cls.trim()) { |
| 6 | el.classList.add(cls); |
| 7 | } |
| 8 | }); |
| 9 | } |
| 10 | |
| 11 | /** |
| 12 | * Get class string based on previously determined classes |
no outgoing calls
no test coverage detected
searching dependent graphs…