{"ScriptPreparationCode":null,"TestCases":[{"Name":"if condition","Code":"const x = {\r\n foo: []\r\n};\r\nconst keys = [\u0022foo\u0022, \u0022bar\u0022];\r\n\r\nfor (const key of keys) {\r\n if (!Object.prototype.hasOwnProperty.call(x, key)) {\r\n x[key] = [];\r\n }\r\n}","IsDeferred":false},{"Name":"self-assignment","Code":"const x = {\r\n foo: []\r\n};\r\nconst keys = [\u0022foo\u0022, \u0022bar\u0022];\r\n\r\nfor (const key of keys) {\r\n x[key] = x[key] ?? [];\r\n}","IsDeferred":false}]}