import {flatMapHelper} from 'cimpress-handlebars-helpers';
handlebars.registerHelper("flatMap", flatMapHelper);
array
- an array to iterate overpath
- a path that identifies the element to take
import {filterByValuesHelper} from 'cimpress-handlebars-helpers';
handlebars.registerHelper("filterByValues", filterByValuesHelper);
collection
- an array to iterate overelement
- element to use for filteringvalues
- filter the array based on these values