Hacker News new | ask | show | jobs
by andrewmunsell 4949 days ago
No if statements and a single, convoluted line: http://jsfiddle.net/P8Dr2/2/
2 comments

Good work, but why make it so complicated? http://jsfiddle.net/4NnVw/3/
Shouldn't the ternary operator be excluded as well if you're doing 'no ifs'?