{"ScriptPreparationCode":null,"TestCases":[{"Name":"Kozhushok","Code":"originalCatalogCar = [{\u0022attribute_1\u0022:{\u0022key\u0022:\u0022modelyearfrom\u0022,\u0022name\u0022:\u0022\u041C\u043E\u0434\u0435\u043B\u044C \u0432\u044B\u043F\u0443\u0441\u043A\u0430\u0435\u0442\u0441\u044F \u0441\u0022,\u0022value\u0022:\u00221.2016\u0022},\u0022attribute_2\u0022:{\u0022key\u0022:\u0022modelyearto\u0022,\u0022name\u0022:\u0022\u041C\u043E\u0434\u0435\u043B\u044C \u0432\u044B\u043F\u0443\u0441\u043A\u0430\u0435\u0442\u0441\u044F \u043F\u043E\u0022,\u0022value\u0022:\u002211.2016\u0022},\u0022attribute_3\u0022:{\u0022key\u0022:\u0022model\u0022,\u0022name\u0022:\u0022\u041C\u043E\u0434\u0435\u043B\u044C\u0022,\u0022value\u0022:\u0022H15E\u0022},\u0022attribute_4\u0022:{\u0022key\u0022:\u0022market\u0022,\u0022name\u0022:\u0022\u0420\u044B\u043D\u043E\u043A\u0022,\u0022value\u0022:\u0022USA\u0022},\u0022attribute_5\u0022:{\u0022key\u0022:\u0022bodyStyle\u0022,\u0022name\u0022:\u0022\u0422\u0438\u043F \u043A\u0443\u0437\u043E\u0432\u0430\u0022,\u0022value\u0022:\u00225 DOOR HATCHBACK\u0022},\u0022attribute_6\u0022:{\u0022key\u0022:\u0022engine\u0022,\u0022name\u0022:\u0022\u0414\u0432\u0438\u0433\u0430\u0442\u0435\u043B\u044C\u0022,\u0022value\u0022:\u00222.0L PETROL ENGINE\u0022},\u0022attribute_7\u0022:{\u0022key\u0022:\u0022complection\u0022,\u0022name\u0022:\u0022\u041A\u043E\u043C\u043F\u043B\u0435\u043A\u0442\u0430\u0446\u0438\u044F\u0022,\u0022value\u0022:\u0022GT-COMFORT GRADE\u0022},\u0022attribute_8\u0022:{\u0022key\u0022:\u0022options\u0022,\u0022name\u0022:\u0022\u041E\u043F\u0446\u0438\u0438\u0022,\u0022value\u0022:\u0022\u0420\u0435\u0433\u0438\u043E\u043D:USA; \u041F\u0440\u0438\u0432\u043E\u0434:2WD\u0022}},{\u0022attribute_1\u0022:{\u0022key\u0022:\u0022modelyearfrom\u0022,\u0022name\u0022:\u0022\u041C\u043E\u0434\u0435\u043B\u044C \u0432\u044B\u043F\u0443\u0441\u043A\u0430\u0435\u0442\u0441\u044F \u0441\u0022,\u0022value\u0022:\u00221.2016\u0022},\u0022attribute_2\u0022:{\u0022key\u0022:\u0022modelyearto\u0022,\u0022name\u0022:\u0022\u041C\u043E\u0434\u0435\u043B\u044C \u0432\u044B\u043F\u0443\u0441\u043A\u0430\u0435\u0442\u0441\u044F \u043F\u043E\u0022,\u0022value\u0022:\u002211.2016\u0022},\u0022attribute_3\u0022:{\u0022key\u0022:\u0022model\u0022,\u0022name\u0022:\u0022\u041C\u043E\u0434\u0435\u043B\u044C\u0022,\u0022value\u0022:\u0022H15E\u0022},\u0022attribute_4\u0022:{\u0022key\u0022:\u0022market\u0022,\u0022name\u0022:\u0022\u0420\u044B\u043D\u043E\u043A\u0022,\u0022value\u0022:\u0022USA\u0022},\u0022attribute_5\u0022:{\u0022key\u0022:\u0022bodyStyle\u0022,\u0022name\u0022:\u0022\u0422\u0438\u043F \u043A\u0443\u0437\u043E\u0432\u0430\u0022,\u0022value\u0022:\u00225 DOOR HATCHBACK\u0022},\u0022attribute_6\u0022:{\u0022key\u0022:\u0022engine\u0022,\u0022name\u0022:\u0022\u0414\u0432\u0438\u0433\u0430\u0442\u0435\u043B\u044C\u0022,\u0022value\u0022:\u00222.0L PETROL ENGINE\u0022},\u0022attribute_7\u0022:{\u0022key\u0022:\u0022complection\u0022,\u0022name\u0022:\u0022\u041A\u043E\u043C\u043F\u043B\u0435\u043A\u0442\u0430\u0446\u0438\u044F\u0022,\u0022value\u0022:\u0022GT-COMFORT GRADE\u0022},\u0022attribute_8\u0022:{\u0022key\u0022:\u0022options\u0022,\u0022name\u0022:\u0022\u041E\u043F\u0446\u0438\u0438\u0022,\u0022value\u0022:\u0022\u0420\u0435\u0433\u0438\u043E\u043D:USA; \u041F\u0440\u0438\u0432\u043E\u0434:2WD\u0022}}]\r\n\r\nconst transformedTableItems = [];\r\n\r\noriginalCatalogCar.forEach(item =\u003E {\r\n const newItem = {};\r\n for (const attribute in item) {\r\n newItem[item[attribute].key] = item[attribute].value;\r\n }\r\n transformedTableItems.push(newItem);\r\n });\r\n","IsDeferred":false},{"Name":"Kitsenko","Code":"const catalogCar = [\r\n {\r\n attribute_1: {\r\n key: \u0027modelyearfrom\u0027,\r\n name: \u0027\u041C\u043E\u0434\u0435\u043B\u044C \u0432\u044B\u043F\u0443\u0441\u043A\u0430\u0435\u0442\u0441\u044F \u0441\u0027,\r\n value: \u00271.2016\u0027,\r\n },\r\n attribute_2: {\r\n key: \u0027modelyearto\u0027,\r\n name: \u0027\u041C\u043E\u0434\u0435\u043B\u044C \u0432\u044B\u043F\u0443\u0441\u043A\u0430\u0435\u0442\u0441\u044F \u043F\u043E\u0027,\r\n value: \u002711.2016\u0027,\r\n },\r\n attribute_3: {\r\n key: \u0027model\u0027,\r\n name: \u0027\u041C\u043E\u0434\u0435\u043B\u044C\u0027,\r\n value: \u0027H15E\u0027,\r\n },\r\n attribute_4: {\r\n key: \u0027market\u0027,\r\n name: \u0027\u0420\u044B\u043D\u043E\u043A\u0027,\r\n value: \u0027USA\u0027,\r\n },\r\n attribute_5: {\r\n key: \u0027bodyStyle\u0027,\r\n name: \u0027\u0422\u0438\u043F \u043A\u0443\u0437\u043E\u0432\u0430\u0027,\r\n value: \u00275 DOOR HATCHBACK\u0027,\r\n },\r\n attribute_6: {\r\n key: \u0027engine\u0027,\r\n name: \u0027\u0414\u0432\u0438\u0433\u0430\u0442\u0435\u043B\u044C\u0027,\r\n value: \u00272.0L PETROL ENGINE\u0027,\r\n },\r\n attribute_7: {\r\n key: \u0027complection\u0027,\r\n name: \u0027\u041A\u043E\u043C\u043F\u043B\u0435\u043A\u0442\u0430\u0446\u0438\u044F\u0027,\r\n value: \u0027GT-COMFORT GRADE\u0027,\r\n },\r\n attribute_8: {\r\n key: \u0027options\u0027,\r\n name: \u0027\u041E\u043F\u0446\u0438\u0438\u0027,\r\n value: \u0027\u0420\u0435\u0433\u0438\u043E\u043D:USA; \u041F\u0440\u0438\u0432\u043E\u0434:2WD\u0027,\r\n },\r\n },\r\n {\r\n attribute_1: {\r\n key: \u0027modelyearfrom\u0027,\r\n name: \u0027\u041C\u043E\u0434\u0435\u043B\u044C \u0432\u044B\u043F\u0443\u0441\u043A\u0430\u0435\u0442\u0441\u044F \u0441\u0027,\r\n value: \u00271.2016\u0027,\r\n },\r\n attribute_2: {\r\n key: \u0027modelyearto\u0027,\r\n name: \u0027\u041C\u043E\u0434\u0435\u043B\u044C \u0432\u044B\u043F\u0443\u0441\u043A\u0430\u0435\u0442\u0441\u044F \u043F\u043E\u0027,\r\n value: \u002711.2016\u0027,\r\n },\r\n attribute_3: {\r\n key: \u0027model\u0027,\r\n name: \u0027\u041C\u043E\u0434\u0435\u043B\u044C\u0027,\r\n value: \u0027H15E\u0027,\r\n },\r\n attribute_4: {\r\n key: \u0027market\u0027,\r\n name: \u0027\u0420\u044B\u043D\u043E\u043A\u0027,\r\n value: \u0027USA\u0027,\r\n },\r\n attribute_5: {\r\n key: \u0027bodyStyle\u0027,\r\n name: \u0027\u0422\u0438\u043F \u043A\u0443\u0437\u043E\u0432\u0430\u0027,\r\n value: \u00275 DOOR HATCHBACK\u0027,\r\n },\r\n attribute_6: {\r\n key: \u0027engine\u0027,\r\n name: \u0027\u0414\u0432\u0438\u0433\u0430\u0442\u0435\u043B\u044C\u0027,\r\n value: \u00272.0L PETROL ENGINE\u0027,\r\n },\r\n attribute_7: {\r\n key: \u0027complection\u0027,\r\n name: \u0027\u041A\u043E\u043C\u043F\u043B\u0435\u043A\u0442\u0430\u0446\u0438\u044F\u0027,\r\n value: \u0027GT-COMFORT GRADE\u0027,\r\n },\r\n attribute_8: {\r\n key: \u0027options\u0027,\r\n name: \u0027\u041E\u043F\u0446\u0438\u0438\u0027,\r\n value: \u0027\u0420\u0435\u0433\u0438\u043E\u043D:USA; \u041F\u0440\u0438\u0432\u043E\u0434:2WD\u0027,\r\n },\r\n },\r\n ];\r\n\r\nconst arr = catalogCar.map(car =\u003E {\r\n return Object.keys(car).reduce((acc, val) =\u003E {\r\n return {\r\n [car[val][\u0027key\u0027]]: car[val][\u0027value\u0027],\r\n ...acc,\r\n }\r\n }, {})\r\n})","IsDeferred":false}]}