function foo2(bar: string) { bar = bar || ''; return bar; }