restangular: Lodash no longer works as a dependency, Underscore is required.
TypeError: _.contains is not a function
Lodash does not have a .contains() function. I’ve searched through the code. Underscore does, however Lodash, if it had one, has removed it. As of right now, installing Restangular today will only work with Underscore.js
Docs should be updated, unless you want to go the route of adding support for the new functions in lodash.js
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 15 (2 by maintainers)
you can solve this issue by adding this script after including lodash :
or you can browse the restangular.js file and change _.contains by _.includes