Closed
Description
MDN URL
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/toSorted
What specific section or headline is this issue about?
Examples - Sorting an Array
What information was incorrect, unhelpful, or incomplete?
const sortedValues = values.toSorted((a, b) => a - b));
What did you expect to see?
const sortedValues = values.toSorted((a, b) => a - b);
Do you have any supporting links, references, or citations?
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Grouping
Do you have anything more you want to share?
No response
MDN metadata
Page report details
- Folder:
en-us/web/javascript/reference/global_objects/array/tosorted
- MDN URL: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/toSorted
- GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/web/javascript/reference/global_objects/array/tosorted/index.md
- Last commit: 6bd17cb
- Document last modified: 2023-04-28T03:58:12.000Z
Activity
Remove extra perentheses
Remove extra perentheses (#26514)