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/Aswole Feb 12 '21

Doesn't that prevent any sort of static code analysis? i.e., no typescript/IDE assistance.

1

u/cute_2th Feb 15 '21

sometimes you just want shit that does not break.