{"ScriptPreparationCode":"const firstObject = {}\r\nfirstObject.key1 = \u0027Hello world\u0027;\r\nfirstObject.key2 = \u0027foo bar\u0027;\r\nfirstObject.key3 = \u002742\u0027;\r\nfirstObject.key4 = \u0027Hitch Hikers Guide to the Galaxy\u0027;\r\n\r\nconst secondObject = {}\r\nfirstObject.key3 = \u0027Hello world\u0027;\r\nfirstObject.key4 = \u0027foo bar\u0027;\r\nfirstObject.key5 = \u002742\u0027;\r\nfirstObject.key6 = \u0027Hitch Hikers Guide to the Galaxy\u0027;\r\n","TestCases":[{"Name":"spread","Code":"const firstObject = {}\r\nfirstObject.key1 = \u0027Hello world\u0027;\r\nfirstObject.key2 = \u0027foo bar\u0027;\r\nfirstObject.key3 = \u002742\u0027;\r\nfirstObject.key4 = \u0027Hitch Hikers Guide to the Galaxy\u0027;\r\n\r\nconst secondObject = {}\r\nfirstObject.key3 = \u0027Hello world\u0027;\r\nfirstObject.key4 = \u0027foo bar\u0027;\r\nfirstObject.key5 = \u002742\u0027;\r\nfirstObject.key6 = \u0027Hitch Hikers Guide to the Galaxy\u0027;\r\n\r\nconst output = {\r\n\t...firstObject,\r\n\t...secondObject\r\n}","IsDeferred":false},{"Name":"Object.assign","Code":"const firstObject = {}\r\nfirstObject.key1 = \u0027Hello world\u0027;\r\nfirstObject.key2 = \u0027foo bar\u0027;\r\nfirstObject.key3 = \u002742\u0027;\r\nfirstObject.key4 = \u0027Hitch Hikers Guide to the Galaxy\u0027;\r\n\r\nconst secondObject = {}\r\nfirstObject.key3 = \u0027Hello world\u0027;\r\nfirstObject.key4 = \u0027foo bar\u0027;\r\nfirstObject.key5 = \u002742\u0027;\r\nfirstObject.key6 = \u0027Hitch Hikers Guide to the Galaxy\u0027;\r\n\r\n// Note this does modify and return the first object, doesn\u0027t create a new one\r\nconst output = Object.assign(firstObject, secondObject);","IsDeferred":false},{"Name":"manually assigning","Code":"const firstObject = {}\r\nfirstObject.key1 = \u0027Hello world\u0027;\r\nfirstObject.key2 = \u0027foo bar\u0027;\r\nfirstObject.key3 = \u002742\u0027;\r\nfirstObject.key4 = \u0027Hitch Hikers Guide to the Galaxy\u0027;\r\n\r\nconst secondObject = {}\r\nfirstObject.key3 = \u0027Hello world\u0027;\r\nfirstObject.key4 = \u0027foo bar\u0027;\r\nfirstObject.key5 = \u002742\u0027;\r\nfirstObject.key6 = \u0027Hitch Hikers Guide to the Galaxy\u0027;\r\n\r\n// Note this does modify and return the first object, doesn\u0027t create a new one\r\nfor (const key in secondObject) {\r\n\tfirstObject[key] = secondObject[key]\r\n}\r\nconst output = firstObject;","IsDeferred":false}]}