suparray
v0.0.8
Published
Array utility functions
Downloads
10
Readme
SUPARRAY
A Javascript package for array utils.
Install Package
npm i suparray
Utils
Examples
Shuffle
const array = [1,5,6,3,8];
const shuffleArray = shuffle(array); // [3,8,6,1,5]
Bubble Sort
const array = [1,5,6,3,8];
const bubbleSortArray = bubbleSort(array); // [1,3,5,6,8]
Selection Sort
const array = [1,5,6,3,8];
const selectionSortArray = selectionSort(array); //[1,3,5,6,8]
Merge Sort
const array = [1,5,6,3,8];
const mergeSortArray = mergeSort(array); // [1,3,5,6,8]