{"ScriptPreparationCode":null,"TestCases":[{"Name":"Destructuring","Code":"var list = [];\r\n\r\nconst type = i % 2 === 1 ? \u0027cases\u0027 : \u0027non-case\u0027;\r\nconst newObj = {\r\n test: \u0027destructoring vs assigment\u0027,\r\n ...(type === \u0027cases\u0027 \u0026\u0026 {name})\r\n}\r\nlist.push(newObj);\r\n","IsDeferred":false},{"Name":"Assigment","Code":"var list = [];\r\n\r\nconst type = i % 2 === 1 ? \u0027cases\u0027 : \u0027non-case\u0027;\r\nconst newObj = {\r\n test: \u0027destructoring vs assigment\u0027,\r\n name: type === \u0027cases\u0027 ? name: undefined,\r\n}\r\nlist.push(newObj);\r\n","IsDeferred":false}]}