index.js
function parseArray(array) {
  const templates = array.map(parse);
  const templateParameters = templates.reduce(
    (parameters, template) => parameters.concat(template.parameters),
    []
  );
  const templateFn = context => templates.map(template => template(context));

  return Template(templateFn, templateParameters);
}
function parseArray(array) {
  const templates = array.map(parse);
  const templateParameters = templates.reduce(
    (parameters, template) => parameters.concat(template.parameters),
    []
  );
  const templateFn = context => templates.map(template => template(context));

  return Template(templateFn, templateParameters);
}
function parseArray ( array ) { const templates = array . map ( parse ) ; const templateParameters = templates . reduce ( ( parameters , template ) => parameters . concat ( template . parameters ) , [ ] ) ; const templateFn = context => templates . map ( template => template ( context ) ) ; return Template ( templateFn , templateParameters ) ; }
Parses non-leaf-nodes in the template object that are arrays.
Parses non - leaf - nodes in the template object that are arrays .