{"ScriptPreparationCode":"\r\nconst object = (id) =\u003E ({ a: () =\u003E id, b: \u0022id-\u0022 \u002B id, });\r\n\r\nconst map = new Map();\r\n\r\nconst arr = [];\r\n\r\nconst max = 100;\r\n\r\nfor (let i = 0; i \u003C max; i\u002B\u002B) {\r\n \tmap.set(i, object(i));\r\n \tarr.push({ id: i, ...object(i) });\r\n}\r\n\r\nconst rng = () =\u003E Math.floor(Math.random() * max);","TestCases":[{"Name":"Array.findIndex","Code":"const id = rng();\r\nconst index = arr.findIndex((obj) =\u003E obj.id === id);","IsDeferred":false},{"Name":"Map.get","Code":"const id = rng();\r\nconst value = map.get(id);","IsDeferred":false}]}