File size: 216 Bytes
64263c4
 
 
3aa8136
64263c4
3aa8136
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;
}