{"ScriptPreparationCode":"var chars = [...\u0027abcdefghijklmnopqrstuvwxyz\u0027];\r\n\r\nfunction setIndividually(arr) {\r\n return arr.reduce((acc, cur) =\u003E {\r\n acc.set(cur, { char: cur });\r\n\r\n return acc;\r\n }, new Map());\r\n}\r\n\r\nfunction createWithProperties(arr) {\r\n const props = arr.map(elem =\u003E [elem, { char: elem }]);\r\n\r\n return new Map(props);\r\n}","TestCases":[{"Name":"Set individually","Code":"var foo = setIndividually(chars);","IsDeferred":false},{"Name":"Create with properties","Code":"var bar = createWithProperties(chars);","IsDeferred":false}]}