Skip to content

Typo of extra parenthesis in example #26510

Closed
@somethingfly

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

Activity

added
needs triageTriage needed by staff and/or partners. Automatically applied when an issue is opened.
on May 1, 2023
added a commit that references this issue on May 1, 2023
added a commit that references this issue on May 1, 2023
added and removed
needs triageTriage needed by staff and/or partners. Automatically applied when an issue is opened.
on May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Content:JSJavaScript docsgood first issueA good issue for newcomers to get started with.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Typo of extra parenthesis in example · Issue #26510 · mdn/content