{"ScriptPreparationCode":null,"TestCases":[{"Name":"Reduce \u002B Concat","Code":"const users = {\r\n\t\u0027user_1\u0027: {\r\n \tlist: {\r\n \tids: [...Array(400)].map(e=\u003EMath.random()*40|0)\r\n }\r\n },\r\n \t\u0027user_2\u0027: {\r\n \tlist: {\r\n \tids: [...Array(500)].map(e=\u003EMath.random()*40|0)\r\n }\r\n },\r\n \t\u0027user_3\u0027: {\r\n \tlist: {\r\n \tids: [...Array(600)].map(e=\u003EMath.random()*40|0)\r\n }\r\n },\r\n \t\u0027user_4\u0027: {\r\n \tlist: {\r\n \tids: [...Array(700)].map(e=\u003EMath.random()*40|0)\r\n }\r\n },\r\n}\r\nconst result = Object.values(users).reduce((ids, user) =\u003E ids.concat(user.list.ids), []);","IsDeferred":false},{"Name":"Reduce \u002B Spread","Code":"const users = {\r\n\t\u0027user_1\u0027: {\r\n \tlist: {\r\n \tids: [...Array(400)].map(e=\u003EMath.random()*40|0)\r\n }\r\n },\r\n \t\u0027user_2\u0027: {\r\n \tlist: {\r\n \tids: [...Array(500)].map(e=\u003EMath.random()*40|0)\r\n }\r\n },\r\n \t\u0027user_3\u0027: {\r\n \tlist: {\r\n \tids: [...Array(600)].map(e=\u003EMath.random()*40|0)\r\n }\r\n },\r\n \t\u0027user_4\u0027: {\r\n \tlist: {\r\n \tids: [...Array(700)].map(e=\u003EMath.random()*40|0)\r\n }\r\n },\r\n}\r\nconst result = Object.values(users).reduce((ids, user) =\u003E [...ids, ...user.list.ids], []);","IsDeferred":false},{"Name":"Reduce \u002B Concat (spread source)","Code":"const users = {\r\n\t\u0027user_1\u0027: {\r\n \tlist: {\r\n \tids: [...Array(400)].map(e=\u003EMath.random()*40|0)\r\n }\r\n },\r\n \t\u0027user_2\u0027: {\r\n \tlist: {\r\n \tids: [...Array(500)].map(e=\u003EMath.random()*40|0)\r\n }\r\n },\r\n \t\u0027user_3\u0027: {\r\n \tlist: {\r\n \tids: [...Array(600)].map(e=\u003EMath.random()*40|0)\r\n }\r\n },\r\n \t\u0027user_4\u0027: {\r\n \tlist: {\r\n \tids: [...Array(700)].map(e=\u003EMath.random()*40|0)\r\n }\r\n },\r\n}\r\nconst result = Object.values(users).reduce((ids, user) =\u003E ids.concat(...user.list.ids), []);","IsDeferred":false}]}