You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this code, `bubbleSort` and `nativeSort` are specific functions imported from the `@iamwill123/collection-of-algos` package. `bubbleSort` is a sorting algorithm that's being applied to an array of numbers, while `nativeSort` is used to sort an array of objects by a specific key.
89
+
In this code, `bubbleSort` and `nativeSort` are specific functions imported from the `collection-of-algos` package. `bubbleSort` is a sorting algorithm that's being applied to an array of numbers, while `nativeSort` is used to sort an array of objects by a specific key.
91
90
92
91
Remember, before using `await`, you should ensure that your code is inside an `async` function. The `await` operator is used to wait for a Promise. It can only be used inside an `async` function.
93
92
94
-
## Using from NPM [here](https://www.npmjs.com/package/collection-of-algos) (no longer supported)
0 commit comments