@clarketm/superbubblesort
v1.2.32
Published
BubbleSort with superpowers! 💪
Downloads
11
Maintainers
Readme
BubbleSort
BubbleSort with superpowers! 💪
Individual Module Installation
Yarn
$ yarn add @clarketm/superbubblesort
Npm
$ npm install @clarketm/superbubblesort --save
API
bubbleSort(arr: Array<Item>, comparator: Comparator): Array<Item>
| Name | Type | Attribute | Description | | ---------- | ----------- | ----------------------------------------------------------------- | ------------- | | arr | Array | | array to sort | | comparator | * | nullable: undefined, optional: true, default: _defaultComparator |