@clarketm/superbubblesort
Version:
BubbleSort with superpowers! 💪
29 lines (18 loc) • 923 B
Markdown
# [BubbleSort](https://www.npmjs.com/package/@clarketm/superbubblesort)
[](https://www.npmjs.com/package/@clarketm/superbubblesort)
BubbleSort with superpowers! 💪
## Individual Module Installation
### Yarn
```bash
$ yarn add @clarketm/superbubblesort
```
### Npm
```bash
$ npm install @clarketm/superbubblesort --save
```
## API
## `bubbleSort(arr: Array<Item>, comparator: Comparator): Array<Item>`
| Name | Type | Attribute | Description |
| ---------- | ----------- | ----------------------------------------------------------------- | ------------- |
| arr | Array<Item> | | array to sort |
| comparator | \* | nullable: undefined, optional: true, default: \_defaultComparator |