Timeline for Is there a null-coalescing (Elvis) operator or safe navigation operator in javascript?
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 8, 2019 at 11:32 | history | edited | James_pic | CC BY-SA 4.0 |
edited body
|
Apr 30, 2019 at 14:34 | comment | added | Shiraz | Love it! Really useful if you want to get the property of an object after an array.find() operation that might not return any results | |
Dec 1, 2017 at 13:59 | comment | added | Matt Jenkins | It also allows navigating an anonymous value without assigning it to a variable first. | |
Jul 4, 2017 at 18:37 | comment | added | Nate Anderson | @Filippos can you give an example of different behavior in logical OR vs && method ? I can't think of a difference | |
Jun 21, 2017 at 13:55 | comment | added | vasilakisfil | That's the only real safe operator in javascript actually. The logical 'OR' operator that is mentioned above is something else. | |
Sep 15, 2016 at 21:06 | comment | added | shriek |
Well, it's hard to read but it's better than that verbose && method. +1.
|
|
Jun 17, 2016 at 15:20 | history | answered | James_pic | CC BY-SA 3.0 |