@clarketm/supermergesort
v1.2.32
Published
MergeSort with superpowers! 💪
Downloads
39
Maintainers
Readme
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 |