include returns incorrect result for undefined in IE #601

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

Projects

None yet

3 participants

@kopious
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

@kitcambridge
Contributor

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.

@jashkenas jashkenas closed this May 11, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment