Find and return an item, as soon as findCb returns true (not truthy).
When input is AsyncGenerator, it returns a Promise resolving to the item. In this cases only, the findCb callback can also be async / return promise (which will be awaited).
You can return STOP or STOP(someValue) to also stop the iteration
Find and return an item, as soon as
findCb
returnstrue
(not truthy).findCb
callback can also be async / return promise (which will be awaited).