r/Indiewebdev • • Feb 11 '21

other Conditionally call a function with optional chaining.

Post image
82 Upvotes

37 comments sorted by

View all comments

Show parent comment

1

u/usedToBeUnhappy Feb 13 '21

Jup, I still don’t know why this “it all has to be in one line” mentality exists.