Returns the CSS classes assigned to an element as a sorted array.
(element: Element)
| 20 | |
| 21 | /** Returns the CSS classes assigned to an element as a sorted array. */ |
| 22 | function sortedClassNames(element: Element): string[] { |
| 23 | return element.className.split(' ').sort(); |
| 24 | } |
| 25 | |
| 26 | /** |
| 27 | * Verifies that an element contains a single `<svg>` child element, and returns that child. |
no test coverage detected
searching dependent graphs…