|
|
|
|
|
by uryga
2264 days ago
|
|
honestly? i like it. properly formatted it looks alright: return (
(cellA === cellB) ? 0 :
(cellA > cellB) ? 1 :
-1
);
and it's an expression, so i immediately know it won't do any weird control flow. i'd prefer "if/then/else" vs "?/:" but it's not bad |
|
I find a better indendation style for this is more like