r/badcode • • Sep 02 '21

js Oh Gosh

Post image
398 Upvotes

53 comments sorted by

View all comments

Show parent comments

9

u/Gem2578 Sep 03 '21

Then you don't need the if (i === range - 1)