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

include returns incorrect result for undefined in IE #601

Closed
kopious opened this issue May 10, 2012 · 1 comment
Closed

include returns incorrect result for undefined in IE #601

kopious opened this issue May 10, 2012 · 1 comment
Labels

Comments

@kopious
Copy link

kopious commented May 10, 2012

Reproduce the issue with the following in developer tools console:
_.include([undefined],undefined)

Expected result: true

Result in IE 8: false

@ghost
Copy link

ghost commented May 10, 2012

This is actually a rather infamous bug: IE <= 8 treats undefined array elements as elisions—it's as if you wrote _.include(Array(1), undefined), which is false in all browsers. Nothing much to be done, I'm afraid.

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

No branches or pull requests

2 participants