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,无需注册。