src/Explorer.js
function findChildContainingNode(root, node) {
  const parentNode = node.parentNode;
  return parentNode === root ?
    node :
    findChildContainingNode(root, parentNode);
}
function findChildContainingNode(root, node) {
  const parentNode = node.parentNode;
  return parentNode === root ?
    node :
    findChildContainingNode(root, parentNode);
}
function findChildContainingNode ( root , node ) { const parentNode = node . parentNode ; return parentNode === root ? node : findChildContainingNode ( root , parentNode ) ; }
Find the child of root that is or contains the given node.
Find the child of root that is or contains the given node .