{"ScriptPreparationCode":"var MyObject = {\r\n description: \u0027Creates a deep copy of source, which should be an object or an array.\u0027,\r\n myNumber: 123456789,\r\n myBoolean: true,\r\n jayson: {\r\n stringify: \u0027JSON.stringify() method converts a JavaScript value to a JSON string....\u0027,\r\n parse: \u0027JSON.parse() method parses a JSON string...\u0027\r\n }\r\n};\r\n\r\nvar myCopy = null;","TestCases":[{"Name":"Lodash cloneDeep","Code":"myCopy = _.cloneDeep(MyObject);\r\nmyCopy.jayson.parse = \u0022something else\u0022;","IsDeferred":false},{"Name":"Native structuredClone","Code":"myCopy = structuredClone(MyObject);\r\nmyCopy.jayson.parse = \u0022something else\u0022;","IsDeferred":false},{"Name":"JSON.stringify","Code":"myCopy = JSON.parse(JSON.stringify(MyObject));\r\nmyCopy.jayson.parse = \u0022something else\u0022;","IsDeferred":false},{"Name":"Immer Produce","Code":"const result = immer.produce(MyObject, draft =\u003E { draft.jayson.parse = \u0022something else\u0022 });","IsDeferred":false}]}