Add iterateUntilResult function
#280
Closed
aleclarson
started this conversation in
Ideas
Replies: 1 comment
-
|
Verdict: Not enough of an improvement over a simple |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The
iterateUntilResultfunction provides a flexible way to search through an array until finding a valid result. It processes items sequentially and supports both synchronous and asynchronous operations through Promise handling. This utility is particularly useful when you need to try multiple items in sequence until finding one that meets your criteria, gracefully handling both immediate returns and promise-based operations in a single interface.Proposed implementation
Beta Was this translation helpful? Give feedback.
All reactions