previousSibling

The TreeWalker.previousSibling() method moves the current Node to its previous sibling, if any, and returns the found sibling.

MDN Reference