Return to Snippet

Revision: 25840
at April 11, 2010 23:14 by djmicahelb


Initial Code
for (i=0; i<multiArray.length; i++) { 
for (x=0; x<multiArray[i].length; x++) {
singleArray.push(multiArray[i][x]);	
};
};

Initial URL

                                

Initial Description
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

Initial Title
Convert MultiDimensional Array into a single dimension Array

Initial Tags

                                

Initial Language
JavaScript