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

_.contains is not a function #3

Open
aldo86 opened this issue Jan 23, 2016 · 4 comments
Open

_.contains is not a function #3

aldo86 opened this issue Jan 23, 2016 · 4 comments

Comments

@aldo86
Copy link

aldo86 commented Jan 23, 2016

Im getting this error on Main.js line 18

@Jakhotiya
Copy link

_.contains has been removed from lodash library so instead use indexOf method to detect if substring exists

@aldo86
Copy link
Author

aldo86 commented Feb 10, 2016

This project uses lodash ~2.4.1... have any other idea?

@Jakhotiya
Copy link

_.contains should work for 2.4.1 but also try it's alias _.includes...if that doesn't work I think you should recheck the version. and if you decide to update the dependency to it's latest 4.x.x then you can use
_.includes for sure.

@vkarpov15
Copy link
Collaborator

The bower.json has lodash: ~2.4.1 - does bower install lodash 4 even if we ask for ~2.4.1?

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

3 participants