{"action":"opened","issue":{"url":"https://api.github.com/repos/tc39/proposal-optional-chaining/issues/31","repository_url":"https://api.github.com/repos/tc39/proposal-optional-chaining","labels_url":"https://api.github.com/repos/tc39/proposal-optional-chaining/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/tc39/proposal-optional-chaining/issues/31/comments","events_url":"https://api.github.com/repos/tc39/proposal-optional-chaining/issues/31/events","html_url":"https://github.com/tc39/proposal-optional-chaining/issues/31","id":257528432,"number":31,"title":"Use with function calls?","user":{"login":"gilbert","id":17013,"avatar_url":"https://avatars1.githubusercontent.com/u/17013?v=4","gravatar_id":"","url":"https://api.github.com/users/gilbert","html_url":"https://github.com/gilbert","followers_url":"https://api.github.com/users/gilbert/followers","following_url":"https://api.github.com/users/gilbert/following{/other_user}","gists_url":"https://api.github.com/users/gilbert/gists{/gist_id}","starred_url":"https://api.github.com/users/gilbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gilbert/subscriptions","organizations_url":"https://api.github.com/users/gilbert/orgs","repos_url":"https://api.github.com/users/gilbert/repos","events_url":"https://api.github.com/users/gilbert/events{/privacy}","received_events_url":"https://api.github.com/users/gilbert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-13T21:33:48Z","updated_at":"2017-09-13T21:33:48Z","closed_at":null,"author_association":"NONE","body":"I couldn't find any examples in the readme, so I just wanted to ask for clarification. Does this operator work with function calls? Example:\r\n\r\n```js\r\nvar active = array2d.find( row => row.active )?.find( col => col.active )\r\n```\r\n\r\nAs opposed to:\r\n\r\n```js\r\nvar active;\r\nvar row = array2d.find( row => row.active )\r\nif ( row !== null ) {\r\n  active = row.find( col => col.active )\r\n}\r\nelse { active = null }\r\n```\r\n\r\nAnd just to be extra clear, if this is a valid case, is the function only called once?"}}
{"actor":{"display_login":"gilbert"}}