v2
5/31/2023 by brandonmcconnell -00
Setup HTML - click to add setup HTML
disable setup JavaScript
Setup JavaScript
const arrays = new Array(1000).fill(null).map((_, j) => new Array(50).fill(null).map((_, i) => i + j));
delete caserun single casemove downdrag and drop case


ready



let arr = [];
for(const array of arrays){
  arr.push(...array);
}
delete caserun single casemove upmove downdrag and drop case


ready



let arr = arrays.flat();
delete caserun single casemove upmove downdrag and drop case


ready



let arr = [];
for(const array of arrays){
  arr = arr.concat(array);
}
delete caserun single casemove upmove downdrag and drop case


ready



let arr = [];
for(let i = 0; i < arrays.length; i++){
  arr.push(...arrays[i]);
}
delete caserun single casemove upmove downdrag and drop case


ready



let arr = [].concat(...arrays);
delete caserun single casemove upmove downdrag and drop case


ready



let arr = [].concat.apply([], arrays);
delete caserun single casemove updrag and drop case


ready



let arr = arrays.reduce((acc, array) => acc.concat(array), []);
Test Case - click to add another test case
Teardown JS - click to add teardown JavaScript
Output (DOM) - click to monitor output (DOM) while test is running
RUN