src/http/get-index/ssr.js
/**
 * @param test Function to test nodes on.
 * @param nodes Array of nodes to search.
 * @returns Whether a tree of nodes contains at least one node passing a test.
 */
@param test Function to test nodes on.
@param nodes Array of nodes to search.
@returns Whether a tree of nodes contains at least one node passing a test.
@param test Function to test nodes on . @param nodes Array of nodes to search . @returns Whether a tree of nodes contains at least one node passing a test .
function existsOne$1(test, nodes) {
  return nodes.some(function (checked) {
    return domhandler_1$3.isTag(checked) && (
    test(checked) ||
    checked.children.length > 0 &&
    existsOne$1(test, checked.children));
  });
}
function existsOne$1 ( test , nodes ) { return nodes . some ( function ( checked ) { return domhandler_1$3 . isTag ( checked ) && ( test ( checked ) || checked . children . length > 0 && existsOne$1 ( test , checked . children ) ) ; } ) ; }
@param test Function to test nodes on.
@param test Function to test nodes on .