Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed comma in example on Web/JavaScript/Reference/Global_Objects/Map/groupBy #30726

Closed
wants to merge 2 commits into from

Conversation

fALKENdk
Copy link
Contributor

@fALKENdk fALKENdk commented Dec 1, 2023

Removed comma in the Using Map.groupBy() example callbackFn.

Updated the Try it example in this PR.

@@ -70,7 +70,7 @@ The code below uses `Map.groupBy()` with an arrow function that returns the obje
const restock = { restock: true };
const sufficient = { restock: false };
const result = Map.groupBy(inventory, ({ quantity }) =>
quantity < 6 ? restock : sufficient,
quantity < 6 ? restock : sufficient
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[mdn-linter] reported by reviewdog 🐶

Suggested change
quantity < 6 ? restock : sufficient
quantity < 6 ? restock : sufficient,

Copy link
Contributor

github-actions bot commented Dec 1, 2023

Preview URLs

(comment last updated: 2023-12-01 23:22:48)

Copy link
Member

@Josh-Cena Josh-Cena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this is the style enforced by our formatter.

@Josh-Cena Josh-Cena closed this Dec 1, 2023
@fALKENdk
Copy link
Contributor Author

fALKENdk commented Dec 1, 2023

Sorry for the inconvenience, it looked odd to me so just changed it without running the formatter.

@fALKENdk fALKENdk deleted the patch-1 branch December 1, 2023 23:50
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Content:JS JavaScript docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants