Skip to content

Rename callbackfn params to predicate where possible#39150

Merged
sandersn merged 2 commits into
microsoft:masterfrom
shvaikalesh:rename-callbackfn-to-predicate
Jun 18, 2020
Merged

Rename callbackfn params to predicate where possible#39150
sandersn merged 2 commits into
microsoft:masterfrom
shvaikalesh:rename-callbackfn-to-predicate

Conversation

@shvaikalesh
Copy link
Copy Markdown
Contributor

This change aligns parameter naming of ES5 predicate methods (every, filter, some) with ES6+ counterparts (find, findIndex).

tc39/ecma262#1782 is a PR against the ECMA-262 to do the same. Aligning TypeScript naming would help move it forward.

This PR is #39056 with changes in src/lib.
cc @DanielRosenwasser

Copy link
Copy Markdown
Member

@sandersn sandersn left a comment

Choose a reason for hiding this comment

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

I like the terminology change, as long as you're OK with the churn @DanielRosenwasser

@sandersn sandersn merged commit 520103f into microsoft:master Jun 18, 2020
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants