{"ScriptPreparationCode":"var objects = [];\r\nfor (var i = 0; i \u003C 10000; i\u002B\u002B) {\r\n var idx = Math.floor(Math.random() * 1000);\r\n objects.push({\r\n index: idx\r\n });\r\n}\r\n\r\nvar idx = Math.floor(Math.random() * 1000);","TestCases":[{"Name":"indexOf","Code":"var objectIndices = [];\r\nfor (var i = 0; i \u003C 10000; i\u002B\u002B) {\r\n\tobjectIndices.push(objects[i].index);\r\n}\r\nvar objectIdx = objectIndices.indexOf(idx);\r\nvar tempResult = objects[objectIdx];","IsDeferred":false},{"Name":"find","Code":"var tempResult = objects.find(v =\u003E v.index === idx);","IsDeferred":false}]}