This is a functional approach to implement the quicksort algorithm in JavaScript.
As a result of ES5/ES6 Feature the implementation is pretty short.
- Array.prototype.reduce (ES5)
- Destructuring of Arrays (ES6)
- Array Spread Operator (ES6) and
- Arrow Functions (ES6)