Cursors
To create a cursor, use find. To access the documents in a cursor, use forEach, map, or fetch.
Anywhere cursor.forEach(callback, [thisArg]) Source Call callback once for each matching document, sequentially and synchronously. Arguments callback Function Function to call. It will be called with three arguments: the document, a 0-based index, and cursor itself. thisArg Any An object which will be the value of this inside callback.
This interface is compatible with Array