function getParents() {
    const parents = []
    let parent = state.parent

    while (parent) {
      parents.push(parent)
      parent = parent.parent
    }

    return parents
  }
function getParents() {
    const parents = []
    let parent = state.parent

    while (parent) {
      parents.push(parent)
      parent = parent.parent
    }

    return parents
  }
function getParents ( ) { const parents = [ ] let parent = state . parent while ( parent ) { parents . push ( parent ) parent = parent . parent } return parents }
/*
The list of all parents, starting from the closest ones.
/ * The list of all parents starting from the closest ones .