{"ScriptPreparationCode":"var data = {};\r\n\r\nvar findId=\u0027data-id-999999\u0027;\r\n\r\n// Generate more data\r\nfor (let i = 1; i \u003C= 1000000; i\u002B\u002B) {\r\n var id = \u0060data-id-${i}\u0060;\r\n data[id] = { id: id };\r\n}","TestCases":[{"Name":" for...in loop","Code":"let result;\r\nfor (const key in data) {\r\n if (data[key].id === findId) {\r\n result = data[key];\r\n break;\r\n }\r\n}","IsDeferred":false},{"Name":"Array.find","Code":"Object.values(data).find(item =\u003E item.id === findId);","IsDeferred":false},{"Name":"for loop","Code":"const keys = Object.keys(data);\r\nfor (let i = 0; i \u003C keys.length; i\u002B\u002B) {\r\n if (data[keys[i]].id === findId) {\r\n return data[keys[i]];\r\n }\r\n }","IsDeferred":false}]}