* fix flow_function_parentheses * fix directives * fix classes * fix flow_method * fix `do` * fix `decorators` * fix `comments_closure_typecast` * fix `comments` * fix `flow_internal_slot` * fix `flow_comments` * fix `flow_type_declarations` * fix `flow_type_spread` * fix `functional_composition` * fix `multiparser_js_css` * fix `no-semi` * fix `objects` * fix `template` * fix `yield` * update `flow_method` snap * fix `empty_paren_comment` * fix `mdx` * fix `object_property_comment` * Update `@babel/parser` * Update @babel/parser to v7.6.2 * Update yarn.lock * fix `nullish_coalescing` test * fix `flow_class_field` test * fix snapshot * @babel/parser v7.6.3 * fix tests * update snap
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 bar = _.flow(
|
|
x => x + 1,
|
|
x => x * 3,
|
|
x => x - 6,
|
|
);
|
|
|
|
bar(6);
|