{"ScriptPreparationCode":"var c = [ { id : \u0027abc\u0027} , {id: \u0027xyz\u0027}];\r\nvar d = [ { id:\u0027abc\u0027}];","TestCases":[{"Name":"Filter","Code":"function fill(c) {\r\n\r\n return c.filter ( function(v) {\r\n for(let x=0;x\u003Cd.length;x\u002B\u002B)\r\n {\r\n if(d[x].id == v.id){\r\n return true\r\n }\r\n }\r\n })\r\n}\r\n\r\nconsole.log(fill(c));","IsDeferred":false},{"Name":"for loop","Code":"var zzz=[];\r\nfor(let y=0;y\u003Cd.length;y\u002B\u002B)\r\n{\r\n let v=c[y];\r\n for(let x=0;x\u003Cd.length;x\u002B\u002B)\r\n {\r\n if(d[x].id == v.id){\r\n zzz.push(v)\r\n }\r\n }\r\n}\r\nconsole.log(zzz);","IsDeferred":false}]}