packages/material-ui-lab/src/internal/pickers/utils.ts/pipe
export const pipe = (...fns: Array<(...args: any[]) => any>) =>
  fns.reduceRight(
    (prevFn, nextFn) => (...args) => nextFn(prevFn(...args)),
    (value) => value,
  );