MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/7ytegt/optional_chaining_may_be_coming_to_javascript/duk5l5u/?context=3
r/javascript • u/gregbaugues • Feb 20 '18
100 comments sorted by
View all comments
2
I agree with others that this kind of code can be a code smell. But I'm often dealing with APIs where fields may or may not be present in which case this operator would be very helpful in reducing clutter.
2
u/jpsi314 Feb 20 '18
I agree with others that this kind of code can be a code smell. But I'm often dealing with APIs where fields may or may not be present in which case this operator would be very helpful in reducing clutter.