/ Published in: JavaScript

Use this to convert a Multidimensional Array (an array of arrays) into one long array. Great to use before running the unique script for instance
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
for (i=0; i<multiArray.length; i++) { for (x=0; x<multiArray[i].length; x++) { singleArray.push(multiArray[i][x]); }; };
Comments
