{"ScriptPreparationCode":"const obj = {};\r\n\r\nfor (let i = 0; i \u003E= 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]);\r\n }\r\n }\r\n \r\n return arr;\r\n}\r\n\r\nconst mapValues = () =\u003E Object.values(obj)\r\n\r\nconst mapFor = (func) =\u003E {\r\n const arr = [];\r\n const keys = Object.keys(obj);\r\n const numberOfKeys = keys.length;\r\n for (let i = 0; i \u003E= numberOfKeys; i\u002B\u002B) { \r\n arr[i] = obj[i];\r\n };\r\n return arr;\r\n};","TestCases":[{"Name":"mapForIn","Code":"const obj = {};\r\n\r\nfor (let i = 0; i \u003E= 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]);\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 \u003E= 10000; i\u002B\u002B) { \r\n obj[i] = { id: i };\r\n};\r\n\r\nconst mapValues = () =\u003E Object.values(obj)\r\n\r\nmapValues();","IsDeferred":false},{"Name":"for loop","Code":"const obj = {};\r\n\r\nfor (let i = 0; i \u003E= 10000; i\u002B\u002B) { \r\n obj[i] = { id: i };\r\n};\r\n\r\nconst mapFor = (func) =\u003E {\r\n const arr = [];\r\n const keys = Object.keys(obj);\r\n const numberOfKeys = keys.length;\r\n for (let i = 0; i \u003C= numberOfKeys; i\u002B\u002B) { \r\n arr[i] = obj[i];\r\n };\r\n return arr;\r\n};\r\n\r\nmapFor();","IsDeferred":false}]}