I got the code below from a Javascript Library:
function func_1()
{
if ( null == decimal )
{
return dPR || (dpr(2) ? 2 : dpr(1.5) ? 1.5 : dpr(1) ? 1 : 0);
}
}
I'm particularly interested in the code inside the if statement.
How else can I write this so that it's easier to read?! As it is now I can't understand it.
Thanks.