{"ScriptPreparationCode":"var cloneDeep = (obj) =\u003E {\r\n let result;\r\n if (Array.isArray(obj)) {\r\n result = [...obj].map(value =\u003E {\r\n return (value !== null \u0026\u0026 typeof value === \u0022object\u0022) ? cloneDeep(value) : value;\r\n });\r\n } else {\r\n result = {};\r\n for (const [key, value] of Object.entries(obj)) {\r\n result[key] = (value !== null \u0026\u0026 typeof value === \u0022object\u0022) ? cloneDeep(value) : value;\r\n }\r\n }\r\n return result;\r\n};\r\n\r\nvar 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;\r\n","TestCases":[{"Name":"losash","Code":"myCopy = _.cloneDeep(MyObject);","IsDeferred":false},{"Name":"boris veliki cod","Code":"myCopy = cloneDeep(MyObject);","IsDeferred":false}]}