@clarketm/superselectionsort

SelectionSort with superpowers! 💪

Usage no npm install needed!

<script type="module">
  import clarketmSuperselectionsort from 'https://cdn.skypack.dev/@clarketm/superselectionsort';
</script>

README

SelectionSort

NPM release

SelectionSort with superpowers! 💪

Individual Module Installation

Yarn

$ yarn add @clarketm/superselectionsort

Npm

$ npm install @clarketm/superselectionsort --save

API

selectionSort(arr: Array<Item>, comparator: Comparator): Array<Item>

Name Type Attribute Description
arr Array array to sort
comparator * nullable: undefined, optional: true, default: _defaultComparator