re: Sorting Algorithms with Javascript (Part 2) VIEW POST

VIEW PARENT COMMENT VIEW FULL DISCUSSION

I can do pretty much the same in javascript. :)

const qs = (a) => {
   const pivot = a.pop();
   return pivot != null ? [...qs(a.filter(i => i < pivot)), pivot, ...qs(a.filter(i => i >= pivot))] : [];
}
code of conduct - report abuse