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

Update: Code quality: Use for each instead of map. #55798

Conversation

jorgefilipecosta
Copy link
Member

We were not mapping an array to another array we were just applying an operation on each element of the array so in that case forEach should be used instead of map.

@jorgefilipecosta jorgefilipecosta added the [Type] Code Quality Issues or PRs that relate to code quality label Nov 2, 2023
@jorgefilipecosta jorgefilipecosta merged commit fecbaf0 into trunk Nov 2, 2023
@jorgefilipecosta jorgefilipecosta deleted the update/code-quality-use-foreach-operation-instead-of-map branch November 2, 2023 10:12
@github-actions github-actions bot added this to the Gutenberg 17.0 milestone Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Code Quality Issues or PRs that relate to code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant