Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
...
Could someone explain why this works but returning inside the if(cursor.mark !== undefined) fails?
And also why it fails when you put var res inside the function scope?
Because I can't see for the life of me how that changes any functionality.
(My first try was very similar as this except with immediate return etc. and I couldn't(/can't) figure out at all why it doesn't work.)
fixed that
This comment is hidden because it contains spoiler information about the solution
cool!