{"ScriptPreparationCode":"var array = [\r\n {id:\u002713234\u0027, other: null, bubu: \u0027\u0027},\r\n {id:\u002712vwer34\u0027, other: \u0027x\u0027, bubu: \u00274wcw\u0027},\r\n {id:\u0027fsad1234\u0027, other: 0, bubu: \u0027cw34\u0027},\r\n {id:\u0027341234\u0027, other: 111, bubu: \u0027wc4\u0027},\r\n {id:\u00274\u0027, other: 3223, bubu: \u0027cs4cs\u0027}\r\n ]","TestCases":[{"Name":"reduce","Code":"\r\narray.reduce(function (acc, cur, i) {\r\n acc[cur.id] = cur\r\n return acc\r\n }, {})\r\n","IsDeferred":false},{"Name":"map","Code":"\r\nconst obj = {}\r\narray.map(v =\u003E {\r\n obj[v.id] = v\r\n})","IsDeferred":false}]}