Javascript - Compare without typecasting to boolean
<p>In other languages I have two sets of operators, <code>or</code> and <code>||</code>, which typecast differently. Does Javascript have a set of operators to compare and return the original object, rather than a boolean value?</p>

<p>I want to be able to return whichever value is defined, with a single statement like <code>var foo = bar.name or bar.title</code></p>
