Question

Does lodash have a feature like jQuery.noConflict()?

I'm creating a UI Framework (in AngularJS) that allows teams to build plugins that work within the framework. Within the framework, I'd like to use lodash, but I don't want to force on all plugin users that the _. is lodash. I want them to be able to use _. for underscore or whatever. Is there a way to do this in lodash?

Was it helpful?

Solution

Lo-dash has its own noConflict: _.noConflict()

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top