lib/utils/utils.js
function findNodes(body, nodeName) {
  let nodesArray = [];

  if (body) {
    nodesArray = body.filter(node => node.type === nodeName);
  }

  return nodesArray;
}
function findNodes(body, nodeName) {
  let nodesArray = [];

  if (body) {
    nodesArray = body.filter(node => node.type === nodeName);
  }

  return nodesArray;
}
function findNodes ( body , nodeName ) { let nodesArray = [ ] ; if ( body ) { nodesArray = body . filter ( node => node . type === nodeName ) ; } return nodesArray ; }
Find nodes of given name

@param  {Node[]} body Array of nodes
@param  {String} nodeName
@return {Node[]}
Find nodes of given name