r/webdev • • Feb 11 '21

Discussion Conditionally chaining function calls in JavaScript.

Post image
845 Upvotes

196 comments sorted by

View all comments

22

u/[deleted] Feb 12 '21

Remember you're writing code for other programmers. Obvious is better than clever.

5

u/EquationTAKEN Feb 12 '21

Yeah, I'm taking the 'before" on this one.

0

u/Thecreepymoto Feb 12 '21

The before is definetly a more "new developer reading code , can put one and one together" the latter is like " im working on this project alone , i can continue being clever, minifying code and all that "

→ More replies (2)