{"ScriptPreparationCode":"var arr = Array.from({length: 100}).map((_,i) =\u003E ({id: i}));\r\nvar findTargets = Array.from({length: 100}).map((_,i) =\u003E idGen());\r\nfunction idGen() {\r\n return Math.floor(Math.random() * 1000) % 1000\r\n}","TestCases":[{"Name":"array to map and find small","Code":"const arrMap = new Map(arr.entries())\r\nfindTargets.forEach(target =\u003E arrMap.get(target));","IsDeferred":false},{"Name":"array find small","Code":"\r\nfindTargets.forEach(target =\u003E arr.find(i =\u003E i.id === target));","IsDeferred":false}]}