Kth Largest Element In An Array Javascript. Loop through the array. I'm looking for an elegant way of