1.2.32 • Published 5 years ago
@clarketm/superbubblesort v1.2.32
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 |