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

Fixes #1870: _.indexOf with isSorted of true will incorrectly match undefined on an empty array. #1917

Merged
merged 2 commits into from
Nov 4, 2014
Merged

Fixes #1870: _.indexOf with isSorted of true will incorrectly match undefined on an empty array. #1917

merged 2 commits into from
Nov 4, 2014

Conversation

tjbarber
Copy link
Contributor

@tjbarber tjbarber commented Nov 4, 2014

Addresses @jdalton in #1870. Doing a check for the array's length.

jashkenas added a commit that referenced this pull request Nov 4, 2014
…Sorted

Fixes #1870: _.indexOf with `isSorted` of `true` will incorrectly match `undefined` on an empty array.
@jashkenas jashkenas merged commit 3397cad into jashkenas:master Nov 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants