UNPKG

es-grid-template

Version:

es-grid-template

7 lines 254 B
/** * Apply transforms in sequence to the input. * * `applyTransforms(input, f1, f2, f3)` is equivalent to `f3(f2(f1(input)))` */ export default function applyTransforms(input, ...transforms) { return transforms.reduce((v, fn) => fn(v), input); }