r/node • • Nov 10 '20

Conditionally call a function with optional chaining.

Post image
345 Upvotes

126 comments sorted by

View all comments

Show parent comments

14

u/wobsoriano Nov 10 '20

Of course 👍 This is just another way of doing it.

-20

u/OmgImAlexis Nov 10 '20

This is a worse way of doing it.

11

u/threeys Nov 10 '20

Why is it worse?

1

u/FerLuisxd Nov 10 '20

Is not worse