Skip to content

Commit

Permalink
Remove extra perentheses (mdn#26514)
Browse files Browse the repository at this point in the history
Fix mdn/content#mdn#26510
  • Loading branch information
dawei-wang authored May 1, 2023
1 parent b5c766f commit a213cd9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ console.log(sortedMonths); // ['Dec', 'Feb', 'Jan', 'Mar']
console.log(months); // ['Mar', 'Jan', 'Feb', 'Dec']

const values = [1, 10, 21, 2];
const sortedValues = values.toSorted((a, b) => a - b));
const sortedValues = values.toSorted((a, b) => a - b);
console.log(sortedValues); // [1, 2, 10, 21]
console.log(values); // [1, 10, 21, 2]
```
Expand Down

0 comments on commit a213cd9

Please sign in to comment.