Skip to content

Fix 10843: Change Array.prototype.findIndex method definition according to ES6 spec#10917

Merged
mhegazy merged 5 commits into
microsoft:masterfrom
Salasar:Fix10843
Sep 15, 2016
Merged

Fix 10843: Change Array.prototype.findIndex method definition according to ES6 spec#10917
mhegazy merged 5 commits into
microsoft:masterfrom
Salasar:Fix10843

Conversation

@Salasar
Copy link
Copy Markdown
Contributor

@Salasar Salasar commented Sep 14, 2016

@msftclas
Copy link
Copy Markdown

Hi @Salasar, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!

The agreement was validated by Microsoft and real humans are currently evaluating your PR.

TTYL, MSBOT;

Copy link
Copy Markdown
Contributor

@mhegazy mhegazy left a comment

Choose a reason for hiding this comment

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

findIndex also exists in src/lib/es5.d.ts for the typed array variants. you will need to update these too.

Tests are not needed for these.

Comment thread lib/lib.es2015.core.d.ts
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: T) => boolean, thisArg?: any): number;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

these files are generated from the build and should not be changed manually. so please remove these.

see https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md#contributing-libdts-fixes for more details.

Comment thread lib/lib.es6.d.ts Outdated
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: T) => boolean, thisArg?: any): number;
findIndex(predicate: (value: T, index: number, obj: Array<T>) => boolean, thisArg?: any): number;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

same for this file.

@Salasar
Copy link
Copy Markdown
Contributor Author

Salasar commented Sep 15, 2016

@mhegazy I have added necessary changes, please, check it.

Copy link
Copy Markdown
Contributor

@mhegazy mhegazy left a comment

Choose a reason for hiding this comment

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

👍

@mhegazy mhegazy merged commit 10b3d73 into microsoft:master Sep 15, 2016
@mhegazy
Copy link
Copy Markdown
Contributor

mhegazy commented Sep 15, 2016

thanks!

@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
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.

3 participants