{"ScriptPreparationCode":"var a = {\r\n 1: {\r\n id: 1\r\n },\r\n 2: {\r\n id: 2\r\n },\r\n 3: {\r\n id: 3\r\n }\r\n};\r\n\r\nfunction extractValues(obj) {\r\n const t = [];\r\n for (var key in obj) {\r\n t.push(obj[key]);\r\n }\r\n return t;\r\n}\r\n\r\nfunction extractAndFilter(obj) {\r\n const t = [];\r\n for (var key in obj) {\r\n if (obj[key].id \u003E 1) {\r\n t.push(obj[key].name);\r\n }\r\n }\r\n return t;\r\n}","TestCases":[{"Name":"Object.values","Code":"Object.values(a).filter(model =\u003E model.id \u003E 1).map(model =\u003E model.id)","IsDeferred":false},{"Name":"for in","Code":"extractValues(a).filter(model =\u003E model.id \u003E 1).map(model =\u003E model.id)","IsDeferred":false},{"Name":"Object.entries","Code":"Object.entries(a).filter(([, model]) =\u003E model.id \u003E 1).map(([key]) =\u003E key);","IsDeferred":false},{"Name":"Object.keys","Code":"Object.keys(a).filter(id =\u003E a[id].id \u003E 1).map(id =\u003E a[id].id);","IsDeferred":false},{"Name":"extractAndFilter","Code":"extractAndFilter(a);","IsDeferred":false},{"Name":"reduce","Code":"Object.values(a).reduce((a, b) =\u003E {\r\n if(b.id \u003E 1) {\r\n a.push(b.name);\r\n }\r\n return a;\r\n}, [])","IsDeferred":false}]}