cursor:
The cursor of the object being iterated.
Promise
When iteration finish, returned Promise will resolve with undefined, calling any Promise.then() callback.
If operation fails, returned promise will be rejected, calling any Promise.catch() callback.