Last active
August 26, 2017 13:12
-
-
Save jasondmoss/148ab61306b4f51efabbdfee891aa3b2 to your computer and use it in GitHub Desktop.
Concatenate individual arrays into single array for easier manipulation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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