src/http/get-index/ssr.js
/**
 * Search a node and its children for nodes passing a test function.
 *
 * @param test Function to test nodes on.
 * @param node Node to search. Will be included in the result set if it matches.
 * @param recurse Also consider child nodes.
 * @param limit Maximum number of nodes to return.
 * @returns All nodes passing `test`.
 */
Search a node and its children for nodes passing a test function.
@param test Function to test nodes on.
@param node Node to search. Will be included in the result set if it matches.
@param recurse Also consider child nodes.
@param limit Maximum number of nodes to return.
@returns All nodes passing `test`.
Search a node and its children for nodes passing a test function . @param test Function to test nodes on . @param node Node to search . Will be included in the result set if it matches . @param recurse Also consider child nodes . @param limit Maximum number of nodes to return . @returns All nodes passing ` test ` .
function filter(test, node, recurse, limit) {
  if (recurse === void 0) {recurse = true;}
  if (limit === void 0) {limit = Infinity;}
  if (!Array.isArray(node))
  node = [node];
  return find(test, node, recurse, limit);
}
function filter ( test , node , recurse , limit ) { if ( recurse === void 0 ) { recurse = true ; } if ( limit === void 0 ) { limit = Infinity ; } if ( ! Array . isArray ( node ) ) node = [ node ] ; return find ( test , node , recurse , limit ) ; }
Search a node and its children for nodes passing a test function.
Search a node and its children for nodes passing a test function .