1.2.32 • Published 7 years ago
@clarketm/superbubblesort v1.2.32
BubbleSort
BubbleSort with superpowers! 💪
Individual Module Installation
Yarn
$ yarn add @clarketm/superbubblesortNpm
$ npm install @clarketm/superbubblesort --saveAPI
bubbleSort(arr: Array<Item>, comparator: Comparator): Array<Item>
| Name | Type | Attribute | Description |
|---|---|---|---|
| arr | Array | array to sort | |
| comparator | * | nullable: undefined, optional: true, default: _defaultComparator |