Javascript Ternary Operator in Sequence
<p>I got the code below from a Javascript Library:</p>

<pre><code>function func_1()
{
    if ( null == decimal ) 
    {
        return dPR || (dpr(2) ? 2 : dpr(1.5) ? 1.5 : dpr(1) ? 1 : 0);
    }
}
</code></pre>

<p>I'm particularly interested in the code inside the <code>if</code> statement.</p>

<p>How else can I write this so that it's easier to read?! As it is now I can't understand it.</p>

<p>Thanks.</p>
