4 ms·
No if statements and a single, convoluted line: http://jsfiddle.net/P8Dr2/2/ http://jsfiddle.net/P8Dr2/2/
by andrewmunsell 14y ago
No if statements and a single, convoluted line: http://jsfiddle.net/P8Dr2/2/ http://jsfiddle.net/P8Dr2/2/
- tterrace 14y agoShouldn't the ternary operator be excluded as well if you're doing 'no ifs'?
- rickhanlonii 14y agoGood work, but why make it so complicated? http://jsfiddle.net/4NnVw/3/ http://jsfiddle.net/4NnVw/3/