{"ScriptPreparationCode":null,"TestCases":[{"Name":"Spread","Code":"const items = Array.from(Array(10).keys());\r\nitems.reduce((memo, val) =\u003E ({ ...memo, [\u0060id-${val}\u0060]: val }), {});","IsDeferred":false},{"Name":"Object.assign","Code":"const items = Array.from(Array(10).keys());\r\nitems.reduce((memo, val) =\u003E Object.assign(memo, { [\u0060id-${val}\u0060]: val }), {});","IsDeferred":false},{"Name":"Map","Code":"const items = Array.from(Array(10).keys());\r\nitems.reduce((memo, val) =\u003E memo.set(\u0060id-${val}\u0060, val), new Map())","IsDeferred":false},{"Name":"Map with Object.fromEntries","Code":"const items = Array.from(Array(10).keys());\r\nObject.fromEntries(items.reduce((memo, val) =\u003E memo.set(\u0060id-${val}\u0060, val), new Map()));","IsDeferred":false},{"Name":"Function with assignment","Code":"const items = Array.from(Array(10).keys());\r\nitems.reduce((memo, val) =\u003E { memo[\u0060id-${val}\u0060] = val; return memo }, {});","IsDeferred":false}]}