14 ms·
I love this for when I have a huge unknown object that I need to run a diff on. Just console.log(JSON.stringify(object)) and paste into your editor. Then just
by spectrum1234 9y ago
I love this for when I have a huge unknown object that I need to run a diff on.
Just console.log(JSON.stringify(object)) and paste into your editor. Then just remove the string around it and on save, POOF you have a nicely structured object. Do this with your diff state in another commit and you just diff-ed an insanely large mess of code.
This won't work on online diff tools because the format will be different without prettier.