{"ScriptPreparationCode":"var translations = [...Array(500).keys()].map((key) =\u003E ({term: \u0027\u0027\u002BMath.random(), translation: \u0027\u0027 \u002B Math.random()}));\r\nvar data = {iso: \u0027foof\u0027, translations};","TestCases":[{"Name":"reduce \u002B spread operator","Code":"JSON.stringify(\r\n data.translations.reduce((acc, x) =\u003E ({ ...acc, [x.term]: x.translation }), {}),\r\n null,\r\n 4,\r\n )","IsDeferred":false},{"Name":"for","Code":"var trans = {};\r\nfor (const x of data.translations) {\r\n trans[x.term] = x.translation;\r\n}\r\nJSON.stringify(translations, null, 4)","IsDeferred":false},{"Name":"assoc \u002B reduce","Code":"JSON.stringify(\r\n data.translations.reduce((acc, x) =\u003E R.assoc(x.term, x.translation, acc), {}),\r\n null,\r\n 4,\r\n )","IsDeferred":false}]}