lastElementChild

open external val lastElementChild: Element?(source)

The Document.lastElementChild read-only property returns the document's last child Element, or null if there are no child elements.

MDN Reference