{"ScriptPreparationCode":"var test = Array.from({\r\n length: 100000\r\n}, () =\u003E Math.random())","TestCases":[{"Name":"Lodash chunk","Code":"_.chunk(test,5000)","IsDeferred":false},{"Name":"Native Chunk","Code":"const chunk = (input, size) =\u003E {\r\n return input.reduce((arr, item, idx) =\u003E {\r\n return idx % size === 0\r\n ? [...arr, [item]]\r\n : [...arr.slice(0, -1), [...arr.slice(-1)[0], item]];\r\n }, []);\r\n};\r\n\r\nchunk(test,5000)","IsDeferred":false}]}