{"ScriptPreparationCode":"var keyGen = () =\u003E Math.random().toString(36).substring(2, 3);\r\nvar a = Array.from({length:100},()=\u003E{ return { key: keyGen(), val: Math.random() } });\r\nvar b = {};","TestCases":[{"Name":"forEach","Code":"a.forEach(e=\u003E{\r\n \tlet t = b[e.key] || 0;\r\n\tb[e.key] = t \u002B e.val;\r\n});","IsDeferred":false},{"Name":"reduce","Code":"b = a.reduce((a,c)=\u003E {\r\n let t = a[c.key] || 0;\r\n a[c.key] = t \u002B c.val;\r\n return a;\r\n},{})","IsDeferred":false}]}