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

reuse indexOf #16570

Merged
merged 1 commit into from Apr 22, 2018
Merged

reuse indexOf #16570

merged 1 commit into from Apr 22, 2018

Conversation

bekzod
Copy link
Contributor

@bekzod bekzod commented Apr 22, 2018

No description provided.

@bekzod bekzod force-pushed the reuse-indexof branch 2 times, most recently from 58730a6 to 8528a3a Compare April 22, 2018 10:28
Copy link
Member

@rwjblue rwjblue left a comment

Choose a reason for hiding this comment

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

Looks good overall, I commented on one specific section that might need to be reverted...

@@ -1094,10 +1078,11 @@ const ArrayMixin = Mixin.create(Enumerable, {
}

let ret = A();
// SameValueZero comparison (NaN !== NaN)
let predicate = value === value ? item => item === value : item => item !== item;
Copy link
Member

Choose a reason for hiding this comment

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

Why move this up to a function? Doesn’t seem to simplify or correct anything here...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will move it to #16569 which will make more sense there, thanks

@rwjblue
Copy link
Member

rwjblue commented Apr 22, 2018

Merging the other PR made a conflict here, can you fix it up?

@bekzod bekzod force-pushed the reuse-indexof branch 3 times, most recently from b21302e to f70a194 Compare April 22, 2018 13:45
@rwjblue rwjblue merged commit fe6f3df into emberjs:master Apr 22, 2018
@rwjblue
Copy link
Member

rwjblue commented Apr 22, 2018

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants