{"ScriptPreparationCode":"var rq = {\r\n files: Array.from({ length: 100000 }, () =\u003E Math.random()),\r\n foo: \u0027foo\u0027,\r\n bar: \u0027bar\u0027,\r\n}\r\n\r\nvar chunk = function(arr, chunkSize) {\r\n const res = [];\r\n for (let i = 0; i \u003C arr.length; i \u002B= chunkSize) {\r\n const chunk = arr.slice(i, i \u002B chunkSize);\r\n res.push(chunk);\r\n }\r\n return res;\r\n}","TestCases":[{"Name":"Native slice","Code":"chunk(rq.files,5000).map(files =\u003E ({...rq, files}))","IsDeferred":false},{"Name":"lodash chunk","Code":"_.chunk(rq.files,5000).map(files =\u003E ({...rq, files}))","IsDeferred":false}]}