{"ScriptPreparationCode":"var test = Array.from({\r\n length: 100000\r\n}, () =\u003E Math.random())","TestCases":[{"Name":"native slice","Code":"const chunkSize = 80;\r\nconst chunks = [];\r\n\r\nfor (let i = 0; i \u003C= test.length; i \u002B= chunkSize) {\r\n chunks.push(test.slice(i, i \u002B chunkSize));\r\n}","IsDeferred":false},{"Name":"native reduce","Code":"const chunkSize = 80;\r\ntest.reduce((accu, element, idx) =\u003E {\r\n if (idx % chunkSize === 0) {\r\n accu.push([]);\r\n }\r\n const chunk = accu[accu.length - 1];\r\n\r\n chunk.push(element);\r\n return accu;\r\n}, []);","IsDeferred":false},{"Name":"lodash chunk","Code":"_.chunk(test,80)","IsDeferred":false}]}