mkdiff.com

Comparison Tools

Code Diff

1
Righe aggiunte
1
Righe rimosse
2
Righe invariate
Risultato diff
  function total(items) {
-   return items.length
+   return items.reduce((sum, item) => sum + item.count, 0)
  }

Code Diff: Funziona nel browser per controlli rapidi prima di commit, pubblicazione o condivisione.