-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
There are two minor bugs with detectSeries():
- If the iterator function does not return a promise, the operation fails.
- The _notFound parameter is not passed through additional iterations.
Examples:
You would expect this to resolve to 3. Instead, this throws an exception.
detectSeries([1, 2, 3, 4], function(n) {
return n > 2;
});
You would expect this to resolve to 88. Instead, this resolved to undefined.
detectSeries([1, 2, 3, 4], function(n) {
return n > 6;
}, 88);
Metadata
Metadata
Assignees
Labels
No labels