Files
test-repo/tests/functional_composition/lodash_flow_right.js
T
Suchipi ed18f9f7d7 Add heuristic to format functional composition more nicely (#4431)
* Add heuristic to format functional composition more nicely

* Regex -> array

* Use object instead of array for faster lookup

* Remove empty lines

* Add redux connect

Also add comments for libraries
2018-05-07 21:46:30 -06:00

20 lines
224 B
JavaScript

import { flowRight } from "lodash";
const foo = flowRight(
x => x + 1,
x => x * 3,
x => x - 6,
);
foo(6);
import * as _ from "lodash";
const foo = _.flowRight(
x => x + 1,
x => x * 3,
x => x - 6,
);
foo(6);