Skip to content

minor/us-east-1/Flaring unused Promise.race

Text Diff Checker

Compare two texts line by line, unified or side by side.

Added
+4
Removed
-4
Unchanged
4
1+function harvest(errors: SyntaxError[]) {
2+ if (!errors.length) return 0;
1-function harvest(errors) {
23 let total = 0;
4+ for (const e of errors) {
5+ total += e.weight;
3- for (var i = 0; i < errors.length; i++) {
4- total += errors[i].weight;
56 }
6- // TODO: handle empty input
77 return total;
88}
  • Text utilities

    Text Analyser

    Words, characters, sentences, reading time and the words you overuse.

  • Satire tools

    Syntax Bill

    Paste a file. Get an itemised utility bill for the waste in it.

  • Calculators

    Scientific Calculator

    Expressions with functions, constants, degrees or radians, and history.

  • Calculators

    Date Calculator

    Days between dates, working days, add or subtract time, and exact age.

Featured