{"ScriptPreparationCode":"var workOrders = _.range(_.random(1000)).map(x =\u003E ({\r\n assigneeId: Math.random().toString(36).slice(3),\r\n assigneName: \u0027LordWarlock\u0027\r\n}));","TestCases":[{"Name":"Array.prototype.reduce()","Code":"workOrders.reduce((accumulator, workOrder) =\u003E {\r\n if (!workOrder.assigneeId) {\r\n return accumulator;\r\n }\r\n const assigneeExists = accumulator.find(assignee =\u003E assignee.assigneeId === workOrder.assigneeId);\r\n \r\n if (!assigneeExists) {\r\n accumulator.push(workOrder)\r\n }\r\n\r\n return accumulator;\r\n}, []);","IsDeferred":false},{"Name":"_.uniqBy","Code":"_.uniqBy(workOrders, \u0027assigneeId\u0027);","IsDeferred":false}]}