{"ScriptPreparationCode":"var arr = [\r\n { name: \u0027john\u0027, hasPet: true },\r\n { name: \u0027jack\u0027, hasPet: false },\r\n { name: \u0027jill\u0027, hasPet: false },\r\n { name: \u0027james\u0027, hasPet: true },\r\n { name: \u0027jane\u0027, hasPet: false },\r\n]","TestCases":[{"Name":"_.partition","Code":"_.partition(arr);","IsDeferred":false},{"Name":"ES6 partition","Code":"const partition = (arr) =\u003E {\r\n return [\r\n ...arr.filter(el =\u003E el.hasPet),\r\n ...arr.filter(el =\u003E !el.hasPet)\r\n ]\r\n};\r\npartition(arr);","IsDeferred":false}]}