code: function collectSiblings(node, name, endNode) {
            var siblings = [];
  
            for (; node && node != endNode; node = node[name]) {
              siblings.push(node);
            }
  
            return siblings;
          }
docs: Collects siblings
  
  @private
  @param {Node} node Node to collect siblings from.
  @param {String} name Name of the sibling to check for.
  @param {Node} endNode
  @return {Array} Array of collected siblings.