👾 just add missed break line
This commit is contained in:
parent
2901e0c645
commit
ad50be199b
1 changed files with 1 additions and 0 deletions
|
@ -389,6 +389,7 @@ Literally, all elements are converted to strings for comparisons. For strings, l
|
|||
To use our own sorting order, we need to supply a function as the argument of `arr.sort()`.
|
||||
|
||||
The function should compare two arbitrary values and return:
|
||||
|
||||
```js
|
||||
function compare(a, b) {
|
||||
if (a > b) return 1; // if the first value is greater than the second
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue