A worked example, rendered from real sample data. Sign in to run the tool on your own input.
function hello() {
console.log('hello');
return true;
}
---
function hello(name) {
console.log('hello', name);
return name !== undefined;
}--- a/original
+++ b/modified
@@ -1,4 +1,4 @@
-function hello() {
- console.log('hello');
- return true;
+function hello(name) {
+ console.log('hello', name);
+ return name !== undefined;
}
View unified or side-by-side diffs with syntax highlighting. Part of the DevTools Surf developer suite. Browse more tools in the Text / String collection.