src/http/get-index/ssr.js
/**
 * @param options An object describing nodes to look for.
 * @returns A function executing all checks in `options` and returning `true`
 * if any of them match a node.
 */
@param options An object describing nodes to look for.
@returns A function executing all checks in `options` and returning `true`
if any of them match a node.
@param options An object describing nodes to look for . @returns A function executing all checks in ` options ` and returning ` true ` if any of them match a node .
function compileTest(options) {
  var funcs = Object.keys(options).map(function (key) {
    var value = options[key];
    return key in Checks ?
    Checks[key](value) :
    getAttribCheck(key, value);
  });
  return funcs.length === 0 ? null : funcs.reduce(combineFuncs);
}
function compileTest ( options ) { var funcs = Object . keys ( options ) . map ( function ( key ) { var value = options [ key ] ; return key in Checks ? Checks [ key ] ( value ) : getAttribCheck ( key , value ) ; } ) ; return funcs . length === 0 ? null : funcs . reduce ( combineFuncs ) ; }
@param options An object describing nodes to look for.
@param options An object describing nodes to look for .