{"ScriptPreparationCode":"var obj = {\r\n \u0027a\u0027: {\r\n id: \u0027a\u0027,\r\n num: 1\r\n },\r\n \u0027b\u0027: {\r\n id: \u0027b\u0027,\r\n num: 1\r\n },\r\n \u0027c\u0027: {\r\n id: \u0027c\u0027,\r\n num: 1\r\n },\r\n \u0027d\u0027: {\r\n id: \u0027d\u0027,\r\n num: 1\r\n },\r\n \u0027e\u0027: {\r\n id: \u0027e\u0027,\r\n num: 1\r\n },\r\n \u0027f\u0027: {\r\n id: \u0027f\u0027,\r\n num: 1\r\n },\r\n \u0027g\u0027: {\r\n id: \u0027g\u0027,\r\n num: 1\r\n },\r\n};\r\n\r\n\r\nvar ids = Object.values(obj).map(x =\u003E x.id);\r\nvar n = 1;","TestCases":[{"Name":"for-in","Code":"for (var i=n; i \u003E 0; i--) {\r\n\tfor (const find of ids) {\r\n\t\tfor (var key in obj) {\r\n\t\t\tif (obj[key].id === find) {\r\n\t\t\t\tconsole.log(obj[key].id);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}","IsDeferred":false},{"Name":"Object.keys","Code":"for (var i=n; i \u003E 0; i--) {\r\n\tfor (const find of ids) {\r\n\t\tfor (var key of Object.keys(obj)) {\r\n\t\t\tif (obj[key].id === find) {\r\n\t\t\t\tconsole.log(obj[key].id);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}","IsDeferred":false},{"Name":"Object.values","Code":"for (var i=n; i \u003E 0; i--) {\r\n\tfor (const find of ids) {\r\n\t\tfor (var o of Object.values(obj)) {\r\n\t\t\tif (o.id === find) {\r\n\t\t\t\tconsole.log(o.id);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}","IsDeferred":false}]}