{"ScriptPreparationCode":null,"TestCases":[{"Name":"conditional spread","Code":"const conditionallyAdd = (yes) =\u003E {\r\n return {\r\n something: 1,\r\n ...(yes ? { somethingAdded: 2 } : {})\r\n }\r\n}\r\nconditionallyAdd(true)\r\nconditionallyAdd(false)","IsDeferred":false},{"Name":"conditional mutation","Code":"const conditionallyMutate = (yes) =\u003E {\r\n const ret = { something: 1 }\r\n if (yes)\r\n ret.somethingAdded = 2\r\n return ret\r\n}\r\nconditionallyMutate(true)\r\nconditionallyMutate(false)","IsDeferred":false}]}