{"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":"test e verifica","Code":"myCopy = _.cloneDeep(MyObject);","IsDeferred":false},{"Name":"test e verifica cloneObj","Code":"function clone(obj) {\r\n let clone = {};\r\n\r\n\tif (typeof obj === \u0027object\u0027) {\r\n\t\ttry {\r\n\t\t\tclone = JSON.parse(JSON.stringify(obj));\r\n\t\t} catch (e) {\r\n\t\t\tconsole.warn(e);\r\n\t\t}\r\n\t}\r\n\r\n\treturn clone;\r\n}\r\n\r\nmyCopy = clone(MyObject);","IsDeferred":false}]}