{"ScriptPreparationCode":null,"TestCases":[{"Name":"Using the spread operator","Code":"const firstObject = { \r\n prop0: \u0027Hello world\u0027,\r\n prop1: 1,\r\n prop2: 2,\r\n prop3: \u00223\u0022,\r\n prop4: false,\r\n prop5: 0.2\r\n};\r\n\r\nconst finalObject = {...firstObject};","IsDeferred":false},{"Name":"Using Object.assign","Code":"const firstObject = { \r\n prop0: \u0027Hello world\u0027,\r\n prop1: 1,\r\n prop2: 2,\r\n prop3: \u00223\u0022,\r\n prop4: false,\r\n prop5: 0.2\r\n};\r\n\r\nconst finalObject = Object.assign({}, firstObject);","IsDeferred":false},{"Name":"Manually copying properties","Code":"const firstObject = { \r\n prop0: \u0027Hello world\u0027,\r\n prop1: 1,\r\n prop2: 2,\r\n prop3: \u00223\u0022,\r\n prop4: false,\r\n prop5: 0.2\r\n};\r\n\r\nlet finalObject = {};\r\nfinalObject.prop0 = firstObject.prop0;\r\nfinalObject.prop1 = firstObject.prop1;\r\nfinalObject.prop2 = firstObject.prop2;\r\nfinalObject.prop3 = firstObject.prop3;\r\nfinalObject.prop4 = firstObject.prop4;\r\nfinalObject.prop5 = firstObject.prop5;","IsDeferred":false},{"Name":"Create new object while copying","Code":"const firstObject = { \r\n prop0: \u0027Hello world\u0027,\r\n prop1: 1,\r\n prop2: 2,\r\n prop3: \u00223\u0022,\r\n prop4: false,\r\n prop5: 0.2\r\n};\r\n\r\nconst finalObject = { \r\n prop0: firstObject.prop0,\r\n prop1: firstObject.prop1,\r\n prop2: firstObject.prop2,\r\n prop3: firstObject.prop3,\r\n prop4: firstObject.prop4,\r\n prop5: firstObject.prop5\r\n};","IsDeferred":false},{"Name":"Create new object from scratch","Code":"const firstObject = { \r\n prop0: \u0027Hello world\u0027,\r\n prop1: 1,\r\n prop2: 2,\r\n prop3: \u00223\u0022,\r\n prop4: false,\r\n prop5: 0.2\r\n};\r\n\r\nconst finalObject = { \r\n prop0: \u0027Hello world\u0027,\r\n prop1: 1,\r\n prop2: 2,\r\n prop3: \u00223\u0022,\r\n prop4: false,\r\n prop5: 0.2\r\n};","IsDeferred":false}]}