JavaScript Array with superpowers! 💪

Array with superpowers! 💪
> This data structure inherit all methods and properties from the Array built-in.
``bash`
$ yarn add @clarketm/superarray
`bash``
$ npm install @clarketm/superarray --save
Construct a Array
Maps each element using a mapping function, then flattens the result into a new array
| Name | Type | Attribute | Description |
| -------- | -------- | --------- | ----------------- |
| callback | Callback | | callback function |
Creates a new array with all sub-array elements concatenated into it recursively up to the specified depth
| Name | Type | Attribute | Description |
| ----- | ------ | --------- | ------------- |
| depth | number | | flatten depth |
Sort using bubble sort
| Name | Type | Attribute | Description |
| ---------- | ---------- | --------- | ------------------- |
| comparator | Comparator | | comparator function |
Sort using insertion sort
| Name | Type | Attribute | Description |
| ---------- | ---------- | --------- | ------------------- |
| comparator | Comparator | | comparator function |
Sort using merge sort
| Name | Type | Attribute | Description |
| ---------- | ---------- | --------- | ------------------- |
| comparator | Comparator | | comparator function |
Sort using quick sort
| Name | Type | Attribute | Description |
| ---------- | ---------- | --------- | ------------------- |
| comparator | Comparator | | comparator function |
Sort using selection sort
| Name | Type | Attribute | Description |
| ---------- | ---------- | --------- | ------------------- |
| comparator | Comparator | | comparator function |