packages/enzyme/src/selectors.js
function matchDescendant(nodes, predicate) {
  return uniqueReduce(
    (matches, node) => matches.concat(treeFilter(node, predicate)),
    flat(nodes.map(childrenOfNode)),
  );
}
function matchDescendant(nodes, predicate) {
  return uniqueReduce(
    (matches, node) => matches.concat(treeFilter(node, predicate)),
    flat(nodes.map(childrenOfNode)),
  );
}
function matchDescendant ( nodes , predicate ) { return uniqueReduce ( ( matches , node ) => matches . concat ( treeFilter ( node , predicate ) ) , flat ( nodes . map ( childrenOfNode ) ) , ) ; }
Matches all descendant nodes against a predicate,
returning those that match.
@param {Array<Node>} nodes
@param {Function} predicate
Matches all descendant nodes against a predicate returning those that match .