👾 just add missed break line

This commit is contained in:
Lavrentiy Rubtsov 2022-05-14 15:14:26 +06:00 committed by GitHub
parent 2901e0c645
commit ad50be199b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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