{"ScriptPreparationCode":null,"TestCases":[{"Name":"deepclone","Code":"function deepClone(obj) {\r\n if (obj === null || typeof obj !== \u0027object\u0027) {\r\n return obj;\r\n }\r\n\r\n const clone = Array.isArray(obj) ? [] : {};\r\n\r\n for (let key in obj) {\r\n if (obj.hasOwnProperty(key)) {\r\n clone[key] = deepClone(obj[key]);\r\n }\r\n }\r\n\r\n return clone;\r\n}\r\n\r\nvar n = {foo: \u0027bar\u0027, hello: [{hello: \u0027world\u0027, foo: \u0027bar\u0027},{hello: \u0027world\u0027, foo: \u0027bar\u0027},{hello: \u0027world\u0027, foo: \u0027bar\u0027},{hello: \u0027world\u0027, foo: \u0027bar\u0027}]};\r\n\r\nwhile (n.length \u003C 1000) {\r\n n = deepClone(n);\r\n}","IsDeferred":false},{"Name":"JSON Parse","Code":"var n = {foo: \u0027bar\u0027, hello: [{hello: \u0027world\u0027, foo: \u0027bar\u0027},{hello: \u0027world\u0027, foo: \u0027bar\u0027},{hello: \u0027world\u0027, foo: \u0027bar\u0027},{hello: \u0027world\u0027, foo: \u0027bar\u0027}]};\r\nwhile(n.length \u003C 1000) {\r\n \tn = JSON.parse(JSON.stringify(n))\r\n}","IsDeferred":false},{"Name":"Object.assign","Code":"var n = {foo: \u0027bar\u0027, hello: [{hello: \u0027world\u0027, foo: \u0027bar\u0027},{hello: \u0027world\u0027, foo: \u0027bar\u0027},{hello: \u0027world\u0027, foo: \u0027bar\u0027},{hello: \u0027world\u0027, foo: \u0027bar\u0027}]};\r\nwhile(n.length \u003C 1000) {\r\n \tn = Object.assign({}, n);\r\n}\r\n","IsDeferred":false}]}