{"ScriptPreparationCode":"var button = {\r\n id: \u0027Test\u0027,\r\n icon: \u0027icon\u0027,\r\n};\r\nvar state = {\r\n id: \u0027State\u0027 \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 buttons: [button],\r\n states: [state]\r\n};\r\n\r\nvar myCopy = null;","TestCases":[{"Name":"cloneDeep test","Code":"myCopy = _.cloneDeep(MyObject);","IsDeferred":false},{"Name":"Destructuring test","Code":"myCopy = {...MyObject, buttons: [button, ...MyObject.buttons], states: [MyObject.state]};","IsDeferred":false}]}