If you write your code in a functional way where you have an arrow function for each argument, it looks better for them to be inline. I can't imagine any case where it would be used in a different way if we limit to a single argument. Fixes #1065
12 lines
173 B
JavaScript
12 lines
173 B
JavaScript
const fn = b => c => d => {
|
|
return 3;
|
|
};
|
|
|
|
const mw = store => next => action => {
|
|
return next(action)
|
|
}
|
|
|
|
const middleware = options => (req, res, next) => {
|
|
// ...
|
|
};
|