Skip to content

Instantly share code, notes, and snippets.

@vanhecke
Created May 19, 2014 20:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vanhecke/944e786488170e373f97 to your computer and use it in GitHub Desktop.
Save vanhecke/944e786488170e373f97 to your computer and use it in GitHub Desktop.
//Skipped some code from this part:
data_length = JSON.parse(data).length
var total_data = new Array();
total_data.push(JSON.parse(data));
///
// What does this .concat.apply do?
var merged = [];
merged = merged.concat.apply(merged, total_data);
success(merged);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment