Selection sort array
npm install @bemoje/arr-selection-sort-numeric
npm install --save @bemoje/arr-selection-sort-numeric
npm install --save-dev @bemoje/arr-selection-sort-numeric
import arrSelectionSortNumeric from '@bemoje/arr-selection-sort-numeric'
arrSelectionSortNumeric([5, 2, 1, 4, 3])
//=> [1, 2, 3, 4, 5]
Uses Jest to test module functionality. Run tests to get coverage details.
npm run test
Selection sort array
arr
Array The array to sort
Array The sorted array