We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
alias map
map
A function to use as a convention for expressing map that produces an effect.
as-is
await fx(payments) .toAsync() .reject(p => orders.some(order => order.id === p.store_order_id)) .forEach(async p => { const { message } = await PayApi.cancelPayment(p.pay_id); console.log(message); });
to-be
await fx(payments) .toAsync() .reject(p => orders.some(order => order.id === p.store_order_id)) .mapEffect(p => PayApi.cancelPayment(p.pay_id)) .forEach(res => console.log(res.message));
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Suggestion
⭐ Suggestion
alias
map
A function to use as a convention for expressing
map
that produces an effect.💻 Use Cases
as-is
to-be
The text was updated successfully, but these errors were encountered: