{"ScriptPreparationCode":null,"TestCases":[{"Name":"for push","Code":"const data = [];\r\nfor(let i=0;i\u003C10;i\u002B\u002B){\r\n data[i]=[];\r\n for(let j=0;j\u003C24;j\u002B\u002B){\r\n data[i][j]=i*10\u002Bj;\r\n }\r\n}\r\n\r\nvar list = [];\r\nfor(var i=0;i\u003Cdata.length;i=i\u002B1){\r\n for(var j=0;j\u003Cdata[i].length;j=j\u002B1){\r\n list.push(data[i][j]);\r\n }\r\n}","IsDeferred":false},{"Name":"reduce.concat","Code":"const data = [];\r\nfor(let i=0;i\u003C10;i\u002B\u002B){\r\n data[i]=[];\r\n for(let j=0;j\u003C24;j\u002B\u002B){\r\n data[i][j]=i*10\u002Bj;\r\n }\r\n}\r\n\r\nconst list = data.reduce((pre,current) =\u003E {pre.push(...current);return pre},[]);","IsDeferred":false},{"Name":"flat() by es2019","Code":"const data = [];\r\nfor(let i=0;i\u003C10;i\u002B\u002B){\r\n data[i]=[];\r\n for(let j=0;j\u003C24;j\u002B\u002B){\r\n data[i][j]=i*10\u002Bj;\r\n }\r\n}\r\n\r\nconst list = data.flat()","IsDeferred":false}]}