{"ScriptPreparationCode":null,"TestCases":[{"Name":"mapForIn","Code":"const obj = {};\r\n\r\nfor (let i = 0; i \u003C= 10000; i\u002B\u002B) { \r\n obj[i] = { id: i };\r\n};\r\n\r\nconst mapForIn = () =\u003E {\r\n const arr = [];\r\n for (let key in obj) {\r\n if (Object.hasOwnProperty(obj)) {\r\n arr.push(obj[key].id);\r\n }\r\n }\r\n \r\n return arr;\r\n}\r\n\r\nmapForIn();","IsDeferred":false},{"Name":"mapValues","Code":"const obj = {};\r\n\r\nfor (let i = 0; i \u003C= 10000; i\u002B\u002B) { \r\n obj[i] = { id: i };\r\n};\r\n\r\nconst mapValues = () =\u003E Object.values(obj).map(v =\u003E v.id)\r\n\r\nmapValues();","IsDeferred":false},{"Name":"for loop","Code":"const obj = {};\r\nconst keys = [];\r\n\r\nfor (let i = 0; i \u003C= 10000; i\u002B\u002B) { \r\n obj[i] = { id: i };\r\n keys.push(i);\r\n};\r\n\r\nconst numberOfKeys = keys.length - 1;\r\n\r\nconst mapFor = () =\u003E {\r\n const arr = [];\r\n for (let i = 0; i \u003C= numberOfKeys; i\u002B\u002B) { \r\n arr[i] = obj[i].id;\r\n };\r\n return arr;\r\n};\r\n\r\nmapFor();","IsDeferred":false}]}