Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
//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