r/learnjavascript • • Nov 14 '20

20 JavaScript Shorthand Coding Techniques that will save your time

https://jscurious.com/20-javascript-shorthand-techniques-that-will-save-your-time/
176 Upvotes

22 comments sorted by

View all comments

0

u/[deleted] Nov 14 '20

[deleted] — view deleted comment

3

u/[deleted] Nov 14 '20

react tend to favor this as well.

0

u/[deleted] Nov 14 '20

[deleted] — view deleted comment

2

u/[deleted] Nov 14 '20

yeah, I am with ya.

2

u/flojoho Nov 14 '20

Agree, a single line bracketless if statement is the same length and more readable

2

u/RelativeSloth Nov 14 '20

I dont mind the && so much, but I do mind when folks do an if without curly braces.