mkdiff

Unified Diff Viewer オンラインツール

Unified Diff Viewer をブラウザーで使用できます。登録は不要です。

1
Files
1
Hunks
3
Added lines
1
Removed lines
3
Context lines

b/src/app.ts

--- a/src/app.ts · +++ b/src/app.ts

@@ -1,6 +1,8 @@
11 export function total(items) {
2- return items.length
2+ return items.reduce((sum, item) => {
3+ return sum + item.count
4+ }, 0)
35 }
46 console.log(total([{ count: 2 }]))

Unified Diff Viewer オンラインツール

Unified Diff Viewer をブラウザーで使用できます。登録は不要です。