r/node • • Nov 10 '20

Conditionally call a function with optional chaining.

Post image
345 Upvotes

126 comments sorted by

View all comments

0

u/bitsandbytez Nov 10 '20 edited Nov 10 '20

You know I was so excited about this when I first heard about it, but then I started using it and I just don’t like it. I get the extreme use case but if anything it just confusing future developers.

Edit: downvoted for a POV?

2

u/RufusThreepwood Nov 10 '20

It's arguably confusing to past/current developers. Future developers will know and love optional chaining.

1

u/bitsandbytez Nov 10 '20

I meant the next developer to work on it.