lib/parsers/clover.js
function findElements(node, name) {
  return name in node && Array.isArray(node[name]) ? node[name] : [];
}
function findElements(node, name) {
  return name in node && Array.isArray(node[name]) ? node[name] : [];
}
Defines the shape of a node in an XML document.
@typedef {object} XmlNode
 
Returns direct child elements of the specified node.
@param {XmlNode} node The node to process.
@param {string} name The tag name of the child elements to find.
@return {XmlNode[]} The direct child elements with the given tag name.