Skip to content

detectSeries issues #3

@solarflare045

Description

@solarflare045

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions