lodash_flow_right.js 224 B

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