{"ScriptPreparationCode":"var jobIds = [1, 2, 3, 4, 5]\r\nvar jobs = {\r\n 1: { status: 2 },\r\n 2: { status: 1 },\r\n 3: { status: 3 },\r\n 4: { status: 2 },\r\n 5: { status: 3 }\r\n}","TestCases":[{"Name":"map and filter","Code":"var activeJobs = jobIds.map(id =\u003E jobs[id]).filter(job =\u003E job.status !== 3)","IsDeferred":false},{"Name":"forEach","Code":"var activeJobs = []\r\njobIds.forEach(id =\u003E {\r\n var job = jobs[id]\r\n if (job.status !== 3) activeJobs.push(job)\r\n})","IsDeferred":false}]}