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

refactor: Use arrow functions when calling Array.prototype.filter #8557

Merged
merged 1 commit into from
Aug 30, 2024

Conversation

cpcallen
Copy link
Contributor

The basics

The details

Proposed Changes

Use arrow functions when calling Array.prototype.filter, and make a few other other related changes.

Reason for Changes

Conciseness and readability.

Test Coverage

Passes npm test.

Additional Information

I did not refactor one example in generators/javascript/math.ts (and associated test) as we want to maintain ES5.1 compatibility there.

@cpcallen cpcallen merged commit 724828f into google:develop Aug 30, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants