{"ScriptPreparationCode":"var getLabel = (key) =\u003E {\r\n switch (key) {\r\n case \u0027a\u0027:\r\n \treturn \u0027a\u0027;\r\n case \u0027b\u0027:\r\n \treturn \u0027b\u0027;\r\n default:\r\n \treturn \u0027c\u0027;\r\n }\r\n}\r\n\r\nvar dictionary = {\r\n a: \u0027a\u0027,\r\n b: \u0027b\u0027,\r\n c: \u0027c\u0027,\r\n}","TestCases":[{"Name":"1","Code":"const obj = {};\r\n\r\nfor (const key of Object.values(dictionary)) {\r\n\tobj[key] = {\r\n \tvalue: key,\r\n \tlabel: getLabel(key),\r\n }\r\n}","IsDeferred":false},{"Name":"2","Code":"const obj = Object.fromEntries(Object.values(dictionary).map((item) =\u003E ([item.value, item])));","IsDeferred":false}]}