nextSibling

external val nextSibling: Node?(source)

The MutationRecord read-only property nextSibling is the next sibling of an added or removed child node of the target of a MutationObserver.

MDN Reference