I think it would be nice to have conditional function chaining, like the following:
...which will be compiled to:
var x$;
x$ = a;
x$ = x$.x();
if (foo) {
x$ = x$.y();
}
x$ = x$.z();
This feature will be useful when we need a conditional middle step on a long function chain.