Skip to content

Commit dbfb7d5

Browse files
authored
docs: Note special case in AbstractCursor.forEach() iterator (#3445)
This undocumented behavior is surprising. Adding a note here may help future users.
1 parent bf000ae commit dbfb7d5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/cursor/abstract_cursor.ts

+2
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,8 @@ export abstract class AbstractCursor<
400400
/**
401401
* Iterates over all the documents for this cursor using the iterator, callback pattern.
402402
*
403+
* If the iterator returns `false`, iteration will stop.
404+
*
403405
* @param iterator - The iteration callback.
404406
* @param callback - The end callback.
405407
*/

0 commit comments

Comments
 (0)