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

The function contains/include will cause the _.omit function deal with an array object incorrect #498

Open
jhao opened this issue Sep 1, 2016 · 0 comments

Comments

@jhao
Copy link

jhao commented Sep 1, 2016

The "contains/include" function in original underscore could deal with array correct, such as ["apple","banana","orange"].
When search a key named "a", the original contains would return -1.
But the underscore.string recover the contains, and make the value of return is 0, since it only use the follow function to make it to string simply.
return '' + object; in module.exports

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