{"ScriptPreparationCode":"var MyObject = {\r\n a: _.range(1000).map(i =\u003E ({\r\n foo: {\r\n a: 123,\r\n b: 456,\r\n bar: {\r\n a: 123,\r\n b: 456,\r\n }\r\n }\r\n })),\r\n b: {\r\n a: 123,\r\n b: 456,\r\n c: {\r\n a: 123,\r\n b: 456,\r\n c: {\r\n a: 123,\r\n b: 456,\r\n c: {\r\n a: 123,\r\n b: 456,\r\n c: _.range(1000).map(i =\u003E ({\r\n a: 123,\r\n b: 456\r\n }))\r\n }\r\n }\r\n }\r\n }\r\n\r\n};\r\n\r\nvar myCopy = null;","TestCases":[{"Name":"Lodash cloneDeep","Code":"myCopy = _.cloneDeep(MyObject);","IsDeferred":false},{"Name":"Native structuredClone","Code":"myCopy = structuredClone(MyObject);","IsDeferred":false},{"Name":"JSON Parse","Code":"myCopy = JSON.parse(JSON.stringify(MyObject));","IsDeferred":false}]}