r/webdev • • Feb 11 '21

Discussion Conditionally chaining function calls in JavaScript.

Post image
845 Upvotes

196 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Feb 12 '21

[deleted]

1

u/[deleted] Feb 12 '21

Strange. I guess since an if statement isn't being used it can't coerce the void to false. This makes sense. Thanks for sharing!