To be fair you can do that last example as
let [a,b] = list
return a > b
Which is way shorter. It would make sense perhaps for getting items from the end of a list, but as you say not very legible.
Oh yea forgot about that trick! The most interesting thing about this technique is to find where to use it.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.