A collection of sorting algorithms implemented in JavaScript.
npm install sorting-algorithms-js
import { bubbleSort, quickSort } from 'sorting-algorithms-js';
const arr = [5, 3, 8, 4, 2];
const sortedArray = quickSort(arr);
console.log(sortedArray); // Output: [2, 3, 4, 5, 8]