{"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},{"Name":"for","Code":"var activeJobs = []\r\nfor (i = 0; i \u003C jobIds.length; i\u002B\u002B) {\r\n var job = jobIds[i]\r\n if (job.status !== 3) activeJobs.push(job)\r\n}","IsDeferred":false}]}