Files
test-repo/tests/format/js/last-argument-expansion/function-expression.js
T

21 lines
435 B
JavaScript

function* mySagas() {
yield effects.takeEvery(
rexpress.actionTypes.REQUEST_START,
function*({ id }) {
console.log(id);
yield rexpress.actions(store).writeHead(id, 400);
yield rexpress.actions(store).end(id, 'pong');
console.log('pong');
}
);
}
function mySagas2() {
return effects.takeEvery(
rexpress.actionTypes.REQUEST_START,
function({ id }) {
console.log(id);
}
);
}