dist/vast-client-node.js
function childByName(node, name) {
  var childNodes = node.childNodes;

  for (var childKey in childNodes) {
    var child = childNodes[childKey];

    if (child.nodeName === name) {
      return child;
    }
  }
}
function childByName(node, name) {
  var childNodes = node.childNodes;

  for (var childKey in childNodes) {
    var child = childNodes[childKey];

    if (child.nodeName === name) {
      return child;
    }
  }
}
function childByName ( node , name ) { var childNodes = node . childNodes ; for ( var childKey in childNodes ) { var child = childNodes [ childKey ] ; if ( child . nodeName === name ) { return child ; } } }
This module provides support methods to the parsing classes.
 
Returns the first element of the given node which nodeName matches the given name.
@param  {Object} node - The node to use to find a match.
@param  {String} name - The name to look for.
@return {Object}
This module provides support methods to the parsing classes . Returns the first element of the given node which nodeName matches the given name .