{"ScriptPreparationCode":"var array = Array.from(Array(10001), (_,x) =\u003E ({ id: x, value: x * 10 }));\r\n// a = [{ id: 0, value: 0 }, { id: 1, value: 10 }, { id: 2, value: 20 }, ..., { id: 10000, value: 100000 }]\r\nvar object = array.reduce((cum, { id, value }) =\u003E ({ ...cum, [id]: value }), {});\r\n// o = { 0: 0, 1: 10, 2: 20, 3: 30, ..., 10000: 100000 };\r\nvar randomIds = Array.from(Array(100000), () =\u003E Math.floor(Math.random() * 10000));","TestCases":[{"Name":"filter by id from array","Code":"randomIds.forEach(id =\u003E array.filter(a =\u003E a.id === id)[0])","IsDeferred":false},{"Name":"find by id from array","Code":"randomIds.forEach(id =\u003E array.find(a =\u003E a.id === id))","IsDeferred":false},{"Name":"find by key of object","Code":"randomIds.forEach(id =\u003E object[id])","IsDeferred":false}]}