{"ScriptPreparationCode":null,"TestCases":[{"Name":"Destructuring assignment (undefined)","Code":"const event = {\r\n detail: {\r\n someKey: undefined,\r\n }\r\n}\r\n\r\nconst { someKey } = event.detail || {};","IsDeferred":false},{"Name":"Optional chaining (undefined)","Code":"const event = {\r\n detail: {\r\n someKey: undefined,\r\n }\r\n}\r\n\r\nconst someKey = event.detail?.someKey;","IsDeferred":false},{"Name":"Destructuring assignment (null)","Code":"const event = {\r\n detail: {\r\n someKey: null,\r\n }\r\n}\r\n\r\nconst { someKey } = event.detail || {};","IsDeferred":false},{"Name":"Optional chaining (null)","Code":"const event = {\r\n detail: {\r\n someKey: null,\r\n }\r\n}\r\n\r\nconst someKey = event.detail?.someKey;","IsDeferred":false},{"Name":"Destructuring assignment (value)","Code":"const event = {\r\n detail: {\r\n someKey: 100,\r\n }\r\n}\r\n\r\nconst { someKey } = event.detail || {};","IsDeferred":false},{"Name":"Optional chaining (value)","Code":"const event = {\r\n detail: {\r\n someKey: 100,\r\n }\r\n}\r\n\r\nconst someKey = event.detail?.someKey;","IsDeferred":false},{"Name":"Destructuring assignment (no property)","Code":"const event = {\r\n detail: { }\r\n}\r\n\r\nconst { someKey } = event.detail || {};","IsDeferred":false},{"Name":"Optional chaining (no property)","Code":"const event = {\r\n detail: { }\r\n}\r\n\r\nconst someKey = event.detail?.someKey;","IsDeferred":false}]}