Skip to content
New issue

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

Create a method for grouping the array of Promise results by status #287

Closed
MishaSeredenkoPushBased opened this issue Nov 20, 2023 · 1 comment · Fixed by #380
Closed
Assignees
Labels
➕ enhancement new feature or request 🧩 utils

Comments

@MishaSeredenkoPushBased
Copy link
Contributor

The method should group the promise results PromiseSettledResult<any>[] by status to get two arrays with fulfilled and rejected promises:

const {fulfilled, rejected} = groupBy('status', results);

Here's the PoC from @BioPhoton

@BioPhoton
Copy link
Collaborator

Let's implement this in the next milestone or at lease long after #275.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
➕ enhancement new feature or request 🧩 utils
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants