The most beautiful Javascript Functional Programming syntax
Quentin Gerodel

You have been misled; what you wrote above is *not* quicksort, but a functional imposter, proudly displayed on the Haskell wiki as a way to dodge around the awkward fact that really writing quicksort in a pure language is not easy.