{"ScriptPreparationCode":"var tabl = Array.from({ length: 10000 }).map((value, i) =\u003E i)","TestCases":[{"Name":"Lodash partition","Code":"const [a, b] = _.partition(tabl, e =\u003E e % 2)","IsDeferred":false},{"Name":"reduce with array push","Code":"const partition = (a, p) =\u003E a.reduce((result, e, i) =\u003E (result[p(e) ? 0 : 1].push(e), result), [[], []]);\r\nconst predicate = e =\u003E e % 2;\r\nconst [a, b] = partition(tabl, predicate);","IsDeferred":false},{"Name":"double filter","Code":"const a = tabl.filter(e =\u003E e % 2);\r\nconst b = tabl.filter(e =\u003E !e % 2);","IsDeferred":false}]}