function isClosestSibling(nodeA, nodeB) {
  return nodeA.nextSibling === nodeB ||
         nodeA.previousSibling === nodeB;
}
returns whether nodeB is closest sibling of nodeA

@param {Node} nodeA
@param {Node} nodeB
@return {Boolean}