@bemoje/arr-selection-sort-numeric

Selection sort array

Usage no npm install needed!

<script type="module">
  import bemojeArrSelectionSortNumeric from 'https://cdn.skypack.dev/@bemoje/arr-selection-sort-numeric';
</script>

README

@bemoje/arr-selection-sort-numeric

Selection sort array

Version

NPM version

Travis CI

dependencies

Dependencies

dependencies

Stats

NPM downloads Forks

Donate

Buy Me A Beer donate button PayPal donate button

Installation

npm install @bemoje/arr-selection-sort-numeric
npm install --save @bemoje/arr-selection-sort-numeric
npm install --save-dev @bemoje/arr-selection-sort-numeric

Usage

import arrSelectionSortNumeric from '@bemoje/arr-selection-sort-numeric'

arrSelectionSortNumeric([5, 2, 1, 4, 3])
//=> [1, 2, 3, 4, 5]

Tests

Uses Jest to test module functionality. Run tests to get coverage details.

npm run test

API

arrSelectionSortNumeric

Selection sort array

Parameters
  • arr Array The array to sort
Returns

Array The sorted array