Skip to content

Instantly share code, notes, and snippets.

@jasondmoss
Last active August 26, 2017 13:12
Show Gist options
  • Save jasondmoss/148ab61306b4f51efabbdfee891aa3b2 to your computer and use it in GitHub Desktop.
Save jasondmoss/148ab61306b4f51efabbdfee891aa3b2 to your computer and use it in GitHub Desktop.
Concatenate individual arrays into single array for easier manipulation.
/**
* Concatenate individual arrays into single array for easier manipulation.
*
* @param {Array} Individual arrays; as many as required.
*
* @returns {Array} Concatenated array.
*/
function mergeArrays()
{
return [].concat.apply([], arguments);
}
/* <> */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment