lodash_flow.js 209 B

1234567891011121314151617181920
  1. import { flow } from "lodash";
  2. const foo = flow(
  3. x => x + 1,
  4. x => x * 3,
  5. x => x - 6,
  6. );
  7. foo(6);
  8. import * as _ from "lodash";
  9. const foo = _.flow(
  10. x => x + 1,
  11. x => x * 3,
  12. x => x - 6,
  13. );
  14. foo(6);