Skip to content

Instantly share code, notes, and snippets.

@reiddraper
Created March 12, 2011 20:13
Show Gist options
  • Save reiddraper/867516 to your computer and use it in GitHub Desktop.
Save reiddraper/867516 to your computer and use it in GitHub Desktop.
// get the resultset object
// this is a synchronous call, that doesn't
// hit the network yet
var results = artist.biographies();
// call a function for each result
results.forEach(30, function(bio) {
console.log(bio.title);
});
// get an array of results
results.get(10, function(all_results) {
for (result in all_results) {
console.log(bio.title);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment