Giving one argument to composition methods like _.flow
and _.compose
is useless, as _.flow(fn)(x)
is the same as calling fn(x)
.
import _, {flow} from 'lodash/fp';
flow(fn)(x);
_.flow(fn)(x);
import _, {flow} from 'lodash/fp';
flow(fn1, fn2)(x);
_.flow(fn1, fn2)(x);