Created
October 1, 2012 21:54
-
-
Save mvasilkov/3814708 to your computer and use it in GitHub Desktop.
TypeScript as a JS pretty print tool
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Original code */ | |
var s = 'foo.bar', im = new Image | |
im.src = s; s = im.src | |
console.log(s) | |
/* TypeScript output */ | |
var s = 'foo.bar'; | |
var im = new Image(); | |
im.src = s; | |
s = im.src; | |
console.log(s); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment