DEV Community

loading...

Discussion on: Nulling JavaScript

Collapse
rhymes profile image
rhymes

I like the idea. Kind of like Ruby's operator &. which works the same way:

response&.body&.somethingElse&.myValue || "default"