This computes the same result with less code by computing many of the old checks at once: * It won't enter the loop if clength > length, because then the result of length - clength will be negative and the loop conditional will fail. * i + clength will never be greater than length, because it starts out as i = length - clength, implying that i + clength equals length, and it only goes down from there. * The aborted variable is replaced with control flow. |
||
|---|---|---|
| .. | ||
| css | ||
| fonts | ||
| images | ||
| js | ||
| .eslintrc.js | ||
| COPYRIGHT.txt | ||
| LICENSE-APACHE.txt | ||
| LICENSE-MIT.txt | ||
| scrape-examples-help.md | ||