{"ScriptPreparationCode":"function createArray(propsCount) {\r\n const arr = []\r\n for (let i = 0; i \u003C propsCount; i \u002B= 1) {\r\n arr.push({\r\n active: i % 5 === 0\r\n })\r\n }\r\n return arr\r\n}\r\n\r\nvar users = createArray(1000)","TestCases":[{"Name":"Reduce","Code":"users.reduce((acc, curr) =\u003E {\r\n if (curr.active) {\r\n return acc\r\n }\r\n\r\n return { ...acc, [curr.id]: curr.name }\r\n})","IsDeferred":false},{"Name":"Map Filter Reduce Assign","Code":"users.filter((user) =\u003E !user.active).map((user) =\u003E ({ [user.id]: user.name })).reduce(Object.assign, {})","IsDeferred":false},{"Name":"From Entries","Code":"const a = users.filter((user) =\u003E !user.active).map((user) =\u003E [user.id, user.name])\r\nObject.fromEntries(a)","IsDeferred":false}]}