{"ScriptPreparationCode":"var obj = {};\r\nfor (let i = 0; i \u003C 100000; i\u002B\u002B) {\r\n obj[i] = i;\r\n}\r\n\r\nvar ObjToArr = (obj)=\u003E {\r\n if (obj == null) { // null \uB610\uB294 undefined \uAC80\uC0AC\r\n throw new TypeError(\u0027Cannot convert undefined or null to object\u0027);\r\n }\r\n\r\n const ownProps = Object.keys(obj); // \uAC1D\uCCB4\uC758 \uC790\uCCB4 \uC5F4\uAC70 \uAC00\uB2A5\uD55C \uC18D\uC131 \uD0A4\uB97C \uAC00\uC838\uC635\uB2C8\uB2E4.\r\n const length = ownProps.length;\r\n const result = new Array(length);\r\n\r\n for (let i = 0; i \u003C length; i\u002B\u002B) {\r\n result[i] = [ownProps[i], obj[ownProps[i]]]; // [key, value] \uC30D\uC744 \uC0DD\uC131\uD569\uB2C8\uB2E4.\r\n }\r\n\r\n return result;\r\n}\r\n\r\nvar ObjToArr2 = (obj)=\u003E {\r\n if (obj == null) { // null \uB610\uB294 undefined \uAC80\uC0AC\r\n throw new TypeError(\u0027Cannot convert undefined or null to object\u0027);\r\n }\r\n\r\n const result = [];\r\n Object.keys(obj).forEach((key) =\u003E result.push([key, obj[key]]));\r\n \r\n return result;\r\n}\r\n\r\nvar ObjToArr3 = (obj)=\u003E {\r\n if (obj == null) { // null \uB610\uB294 undefined \uAC80\uC0AC\r\n throw new TypeError(\u0027Cannot convert undefined or null to object\u0027);\r\n }\r\n\r\n const result = [];\r\n\r\n Object.keys(obj).forEach((key) =\u003E result.push([key, obj[key]]));\r\n \r\n return result;\r\n}\r\n\r\nvar ObjToArr4 = (obj)=\u003E {\r\n if (obj == null) { // null \uB610\uB294 undefined \uAC80\uC0AC\r\n throw new TypeError(\u0027Cannot convert undefined or null to object\u0027);\r\n }\r\n\r\n const result = []\r\n for(const key of Object.keys(obj)) result.push([key, obj[key]]);\r\n \r\n return result;\r\n}\r\n\r\n\r\nvar ObjToArr5 = (obj)=\u003E {\r\n if (obj == null) return;\r\n\r\n const result = []\r\n for(const key in obj) result.push([key, obj[key]]);\r\n \r\n return result;\r\n}\r\n\r\n","TestCases":[{"Name":"ObjToArr4","Code":"ObjToArr4(obj);","IsDeferred":false},{"Name":"Object.entries","Code":"Object.entries(obj);","IsDeferred":false},{"Name":"ObjToArr3","Code":"ObjToArr3(obj);","IsDeferred":false},{"Name":"ObjToArr2","Code":"ObjToArr2(obj);","IsDeferred":false},{"Name":"ObjToArr5","Code":"ObjToArr5(obj);","IsDeferred":false},{"Name":"ObjToArr","Code":"ObjToArr(obj);","IsDeferred":false}]}