r/javascript • • Feb 20 '18

Optional Chaining may be coming to JavaScript

https://dev.to/sammyisa/optional-chaining-may-be-coming-to-javascript--4ff0
321 Upvotes

100 comments sorted by

View all comments

14

u/[deleted] Feb 20 '18

4

u/[deleted] Feb 20 '18

aaka The Elvis operator

10

u/jasie3k Feb 20 '18

Elvis and safe navigation operators are not the same.

3

u/daringStumbles Feb 20 '18

In every language except C# you are correct, the safe navigation operator is referred to as the Elvis operator in C#. I don't know why, but it's weird that way.

2

u/sebnukem Feb 20 '18

No, the Elvis op is ?: