let a = 123;
if (fullMoon()) {
var c = 987;
let d = 666;
}
(function () {
var b = 456;
}());
return new Promise(...);
=>
var a;
var c;
return (function () {
a = 123;
if (fullMoon()) {
c = 987;
let d = 666;
}
(function () {
var b = 456;
}());
return new Promise(...);
}());
Rewrite code snippets like this:
=>