{"ScriptPreparationCode":"var itemCount = 1000\r\nvar items = new Array(itemCount)\r\n\r\nfor (var i = itemCount - 1; i \u003E= 0; i--) {\r\n items[i] = { id: i, data: 920501 }\r\n}","TestCases":[{"Name":"for loop","Code":"const itemsById = {}\r\n\r\nfor (let i = items.length - 1; i \u003E= 0; i--) {\r\n itemsById[items[i].id] = items[i]\r\n}","IsDeferred":false},{"Name":"for-of loop","Code":"const itemsById = {}\r\n\r\nfor (const item of items) {\r\n itemsById[item.id] = item\r\n}","IsDeferred":false},{"Name":"reduce","Code":"const itemsById = items.reduce((result, item) =\u003E {\r\n return { ...result, [item.id]: item }\r\n}, {})","IsDeferred":false}]}