{"ScriptPreparationCode":"var tabl = Array.from({ length: 10000 }).map((value, i) =\u003E i)","TestCases":[{"Name":"my partition","Code":"const [small, large] = // Use \u0022deconstruction\u0022 style assignment\r\n tabl\r\n .reduce((result, element) =\u003E {\r\n result[element % 2 ? 0 : 1].push(element); // Determine and push to small/large arr\r\n return result;\r\n },\r\n [[], []]); ","IsDeferred":false},{"Name":"forEach","Code":"let a = [], b = []; let result = tabl.forEach(item =\u003E {if (item%2) {a.push(item)} else {b.push(item)}})","IsDeferred":false}]}