Hey, love it! I know that you know it can handle duplicates, but a simple fix can work here.<p>Make an array called `equal` before making the `less` and `greater` arrays.<p><pre><code> const equal = arr.filter(i => i === pivot);
</code></pre>
Then, instead of adding the pivot, add the equal array.<p><pre><code> return [
...quicksort(less),
...equal,
...quicksort(greater)
]</code></pre>