for(let i = 0; i < childrenLength; i++){ childrenArr.push(createVTree(children[i])); } return childrenArr; }
function getChildNodesAsArray(childNodes){
    const ignoreTrim = !(whitespaceRules === 'ignore-trim');
    const childNodesArr = [];
    let childNodesLength = childNodes.length;

      for(let i = 0; i < childNodesLength; i++){
        if(childNodes[i].nodeType === 3 & ignoreTrim){
          /*
           *  "\t" TAB \u0009
           *  "\n" LF  \u000A
           *  "\r" CR  \u000D
           *  " "  SPC \u0020
          */
          if(childNodes[i].nodeValue === childNodes[i].nodeValue.replace(/^\s+|\s+$/g, '')){
             childNodesArr.push(createVTree(childNodes[i],whitespaceRules));
          }
        }else{
          childNodesArr.push(createVTree(childNodes[i],whitespaceRules));
        }
      }

    return childNodesArr;
  }