{"ScriptPreparationCode":"values = [1470002400000, 1470088800000, 1470175200000, 1470261600000, 1470348000000, 1470434400000, 1470520800000, 1470607200000, 1470693600000, 1470780000000, 1470866400000, 1470952800000, 1471039200000, 1471125600000, 1471212000000, 1471298400000, 1471384800000, 1471471200000, 1471557600000, 1471644000000, 1471730400000, 1471816800000, 1471903200000, 1471989600000, 1472076000000, 1472162400000, 1472248800000, 1472335200000, 1472421600000, 1472508000000, 1472594400000, 1472680800000, 1472767200000, 1472853600000, 1472940000000, 1473026400000, 1473112800000, 1473199200000, 1473285600000, 1473372000000, 1473458400000, 1473544800000, 1473631200000, 1473717600000, 1473804000000, 1473890400000, 1473976800000, 1474063200000, 1474149600000, 1474236000000, 1474322400000, 1474408800000, 1474495200000, 1474581600000, 1474668000000, 1474754400000, 1474840800000, 1474927200000, 1475013600000, 1475100000000, 1475186400000, 1475272800000, 1475359200000, 1475445600000, 1475532000000, 1475618400000, 1475704800000, 1475791200000, 1475877600000, 1475964000000, 1476050400000, 1476136800000, 1476223200000, 1476309600000, 1476396000000, 1476482400000, 1476568800000, 1476655200000, 1476741600000, 1476828000000, 1476914400000, 1477000800000, 1477087200000, 1477173600000, 1477260000000, 1477346400000, 1477432800000, 1477519200000, 1477605600000, 1477692000000, 1477778400000, 1477868400000, 1477954800000, 1478041200000, 1478127600000, 1478214000000, 1478300400000, 1478386800000, 1478473200000, 1478559600000]","TestCases":[{"Name":"chunk array with while","Code":"function chunkArray(myArray, chunk_size) {\r\n const results = [];\r\n\r\n while (myArray.length) {\r\n results.push(myArray.splice(0, chunk_size));\r\n }\r\n\r\n return results;\r\n}\r\nresult = chunkArray(values, 12);","IsDeferred":false},{"Name":"Chunk Array with es6","Code":"function chunkArray(arr, size) {\r\n return Array.from({ length: Math.ceil(arr.length / size) }, (v, i) =\u003E\r\n arr.slice(i * size, i * size \u002B size),\r\n );\r\n}\r\nresult = chunkArray(values, 12);","IsDeferred":false}]}