@clarketm/superbubblesort
v1.2.32
Published
BubbleSort with superpowers! 💪
Downloads
24
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 |