Source

main-silver / javascript2.editor / test / unit / data / testfiles / formatter / if3.js.default.formatted

Full commit
if (x)
    "hello"
else
    "neco"

if (x) {
    {
    }
    "hello"
}
else {
    "neco"

}

if (done())
    ;
else {
    {
        "ok"
    }
}

if (true)
    a = 7

if ((e || b))
    ;
else {
}
;

if (element.select && (element.tagName.toLowerCase() != 'input' ||
        !['button', 'reset', 'submit'].include(element.type))) {
    element.select();
}