{"ScriptPreparationCode":null,"TestCases":[{"Name":"Object Assign","Code":"const data = [{id: 1, category: \u0022frontend\u0022, title: \u0022All About That Sass\u0022}, {id: 2, category: \u0022backend\u0022, title: \u0022Beam me up, Scotty: Apache Beam tips\u0022}, {id: 3, category: \u0022frontend\u0022, title: \u0022Sanitizing HTML: Going antibactirial on XSS attacks\u0022}, {id: 4, category: \u0022frontend\u0022, title: \u0022Doing something Odd\u0022}, {id: 5, category: \u0022frontend\u0022, title: \u0022How to rebuild the moon?\u0022}];\r\nconst reduced = data.reduce((acc, item) =\u003E { acc[item.id] = item; return acc; }, {});","IsDeferred":false},{"Name":"Object Spread","Code":"const data = [{id: 1, category: \u0022frontend\u0022, title: \u0022All About That Sass\u0022}, {id: 2, category: \u0022backend\u0022, title: \u0022Beam me up, Scotty: Apache Beam tips\u0022}, {id: 3, category: \u0022frontend\u0022, title: \u0022Sanitizing HTML: Going antibactirial on XSS attacks\u0022}, {id: 4, category: \u0022frontend\u0022, title: \u0022Doing something Odd\u0022}, {id: 5, category: \u0022frontend\u0022, title: \u0022How to rebuild the moon?\u0022}];\r\nconst reduced = data.reduce((acc, item) =\u003E ({ ...acc, [item.id]: item }), {});","IsDeferred":false},{"Name":"Object Assign Library","Code":"const data = [{id: 1, category: \u0022frontend\u0022, title: \u0022All About That Sass\u0022}, {id: 2, category: \u0022backend\u0022, title: \u0022Beam me up, Scotty: Apache Beam tips\u0022}, {id: 3, category: \u0022frontend\u0022, title: \u0022Sanitizing HTML: Going antibactirial on XSS attacks\u0022}, {id: 4, category: \u0022frontend\u0022, title: \u0022Doing something Odd\u0022}, {id: 5, category: \u0022frontend\u0022, title: \u0022How to rebuild the moon?\u0022}];\r\nconst reduced = data.reduce((acc, item) =\u003E Object.assign(acc, {[item.id]: item}), {});","IsDeferred":false},{"Name":"forEach comparison","Code":"const data = [{id: 1, category: \u0022frontend\u0022, title: \u0022All About That Sass\u0022}, {id: 2, category: \u0022backend\u0022, title: \u0022Beam me up, Scotty: Apache Beam tips\u0022}, {id: 3, category: \u0022frontend\u0022, title: \u0022Sanitizing HTML: Going antibactirial on XSS attacks\u0022}, {id: 4, category: \u0022frontend\u0022, title: \u0022Doing something Odd\u0022}, {id: 5, category: \u0022frontend\u0022, title: \u0022How to rebuild the moon?\u0022}];\r\nconst reduced = {};\r\ndata.forEach((item) =\u003E { reduced[item.id] = item });","IsDeferred":false}]}