Skip to content

Commit e5b3ed2

Browse files
committed
fixup! stream: add iterator helper find
1 parent 4217c0c commit e5b3ed2

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

doc/api/stream.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2000,7 +2000,7 @@ added: REPLACEME
20002000
This method is similar to `Array.prototype.find` and calls `fn` on each chunk
20012001
in the stream to find a chunk with a truthy value for `fn`. Once an `fn` call's
20022002
awaited return value is truthy, the stream is destroyed and the promise is
2003-
fulfilled with value for which the value of `fn` was truthy for. If all of the
2003+
fulfilled with value for which `fn` returned a truthy value. If all of the
20042004
`fn` calls on the chunks return a falsy value, the promise is fulfilled with
20052005
`undefined`.
20062006

0 commit comments

Comments
 (0)