@clarketm/supermergesort

MergeSort with superpowers! 💪

Usage no npm install needed!

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

README

MergeSort

NPM release

MergeSort with superpowers! 💪

Individual Module Installation

Yarn

$ yarn add @clarketm/supermergesort

Npm

$ npm install @clarketm/supermergesort --save

API

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

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