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

Array.some seem to work in reverse in IE8 #39

Open
moo3 opened this issue Jul 17, 2015 · 0 comments
Open

Array.some seem to work in reverse in IE8 #39

moo3 opened this issue Jul 17, 2015 · 0 comments

Comments

@moo3
Copy link

moo3 commented Jul 17, 2015

Array.some seem to work incorrectly in IE8.

[2,4,6].some( function(v) { return v%2 === 0 } );
// expected: true
// result: false

I'm trying to understand the array.some code

proto.some = function some (lambda) {
   // arguments[+1] is to fool google closure compiler into NOT adding a function argument!
   return array.iterate(this, lambda, function (val) { return !val; }, arguments[+1]);
};

My concern is around the function after lambda which returns !val. Any clue?

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

No branches or pull requests

1 participant