* 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
20 lines
209 B
JavaScript
20 lines
209 B
JavaScript
import { flow } from "lodash";
|
|
|
|
const foo = flow(
|
|
x => x + 1,
|
|
x => x * 3,
|
|
x => x - 6,
|
|
);
|
|
|
|
foo(6);
|
|
|
|
import * as _ from "lodash";
|
|
|
|
const foo = _.flow(
|
|
x => x + 1,
|
|
x => x * 3,
|
|
x => x - 6,
|
|
);
|
|
|
|
foo(6);
|