This method is similar to Array.prototype.some and calls fn on each chunk in the stream
until the awaited return value is true (or any truthy value). Once an fn call on a chunk
awaited return value is truthy, the stream is destroyed and the promise is fulfilled with true.
If none of the fn calls on the chunks return a truthy value, the promise is fulfilled with false.
This method is similar to
Array.prototype.some
and calls fn on each chunk in the stream until the awaited return value istrue
(or any truthy value). Once an fn call on a chunkawait
ed return value is truthy, the stream is destroyed and the promise is fulfilled withtrue
. If none of the fn calls on the chunks return a truthy value, the promise is fulfilled withfalse
.