I know this is Designer News, but most of us code at least a bit. I was curious what your favorite bit of code is. Something cool, elegant, or otherwise. Show us the code, tell us the language, and tell us why you like it. :D
var arr = [1,3,5,4,7,2,8,5,4,77,34,5,6]; arr.sort( (a,b) => ((a==b) ? 0 : (a>b) ? 1 : -1) ); console.log(arr);
Can't wait to see everyone else's code!