Support optional chaining operator in JS
What does this MR do?
add support for ?.
- closes gitlab-org/frontend/rfcs#11 (closed)
before: gon && gon.current_user && gon.current_user.name
now: gon?.current_user?.name
downsides
- might break people's editor syntax highlighting. VSCode supports this in version 1.41
Edited by Simon Knox