Skip to content

Instantly share code, notes, and snippets.

@dmcassel
Created September 14, 2015 17:52
Show Gist options
  • Save dmcassel/db334164654ca8304696 to your computer and use it in GitHub Desktop.
Save dmcassel/db334164654ca8304696 to your computer and use it in GitHub Desktop.
var itr = fn.collection();
while (true) { // Loop until break
var item = itr.next(); // Advance the iterator
if(item.done) break; // If we're at the end, exit the loop
var user = item.value.toObject();
// Do something with the object...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment