Implementing Quicksort in JavaScript
4 min readNov 20, 2018
Quicksort is one of the most efficient methods for sorting an array in computer science. For a thorough breakdown, it has its own Wikipedia article.
This article will cover implementing quicksort in JavaScript. Quicksort is not built in to JavaScript. Due to the sort
method on the Array prototype, sorting is rarely questioned or optimized in the language. Despite that, Quicksort is still an important algorithm to at least comprehend, whether or not you use it.