{"ScriptPreparationCode":null,"TestCases":[{"Name":"Using the spread operator","Code":"const firstObject = {\r\n attempts: 1,\r\n created_at: 1694778031091,\r\n expires_at: 1694778091091,\r\n source: {\r\n externalId: \u0022831f76fc-5a9d-49bc-8d4b-114010cedb73\u0022,\r\n name: \u0022Tengen Uzui\u0022,\r\n type: \u0022phone\u0022,\r\n },\r\n type: \u0022phone\u0022,\r\n value: \u0022411273\u0022,\r\n};\r\nconst finalObject = {\r\n ...firstObject,\r\n attempts: firstObject.attempts \u002B 1,\r\n};\r\n","IsDeferred":false},{"Name":"Using Object.assign","Code":"const firstObject = {\r\n attempts: 1,\r\n created_at: 1694778031091,\r\n expires_at: 1694778091091,\r\n source: {\r\n externalId: \u0022831f76fc-5a9d-49bc-8d4b-114010cedb73\u0022,\r\n name: \u0022Tengen Uzui\u0022,\r\n type: \u0022phone\u0022,\r\n },\r\n type: \u0022phone\u0022,\r\n value: \u0022411273\u0022,\r\n};\r\n\r\nconst finalObject = Object.assign({\r\n attempts: firstObject.attempts \u002B 1,\r\n}, firstObject);\r\n","IsDeferred":false}]}