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