Spaces:
Runtime error
Runtime error
File size: 216 Bytes
faca43f |
1 2 3 4 5 6 7 |
export function deepestChild(el: HTMLElement): HTMLElement {
if (el.lastElementChild && el.lastElementChild.nodeType !== Node.TEXT_NODE) {
return deepestChild(el.lastElementChild as HTMLElement);
}
return el;
}
|