{"ScriptPreparationCode":"var array = Array(100000)\r\n\r\nfunction nativeChunk (array) {\r\n let newArray = []\r\n let newSubArray = []\r\n \r\n for (element of array){\r\n \tif (newSubArray.length === 10) {\r\n newArray.push(newSubArray)\r\n newSubArray = []\r\n }\r\n newSubArray.push(element)\r\n }\r\n return newArray\r\n}","TestCases":[{"Name":"lodash chunk method ","Code":"_.chunk(array, 10);","IsDeferred":false},{"Name":"my native chunk algorithm","Code":"nativeChunk(array)","IsDeferred":false}]}