{"ScriptPreparationCode":null,"TestCases":[{"Name":"Update Object with Object.assign","Code":"const imutableObject = { \r\n name: \u0027David Walsh\u0027,\r\n age: 33,\r\n role: \u0022Developer\u0022,\r\n status: \u0022active\u0022,\r\n isLoading: true,\r\n isLoading1: true,\r\n isLoading2: true,\r\n isLoading3: true,\r\n isLoading4: true,\r\n isLoading5: true,\r\n isLoading6: true,\r\n isLoading7: true\r\n};\r\nconst newObject = Object.assign(imutableObject, {status: \u0022inactive\u0022});\r\n","IsDeferred":false},{"Name":"Update Object with Spread Operator","Code":"const imutableObject = { \r\n name: \u0027David Walsh\u0027,\r\n age: 33,\r\n role: \u0022Developer\u0022,\r\n status: \u0022active\u0022,\r\n isLoading: true,\r\n isLoading1: true,\r\n isLoading2: true,\r\n isLoading3: true,\r\n isLoading4: true,\r\n isLoading5: true,\r\n isLoading6: true,\r\n isLoading7: true\r\n};\r\nconst newObject = {...imutableObject, status: \u0022inactive\u0022};\r\n","IsDeferred":false}]}