MergeSort
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 |