http://gothoxeo4g2yqa3ba27z3sigeprlwan3deogkejooe7zqccou6qgkvad.onion/ryanmcdermott/clean-code-javascript
Bad: // On old browsers, each iteration with uncached `list.length` would be costly // because of `list.length` recomputation. In modern browsers, this is optimized. for ( let i = 0 , len = list . length ; i < len ; i ++ ) { // ... } Good: for ( let i = 0 ; i < list . length ; i ++ ) { // ... } ⬆ back to top Remove dead code Dead code is just as bad as duplicate code.