I’m using jQuery and underscore.js for my personal project and I love both frameworks. The problem is that they heavily overlap at functionality.
For example there are $.each and _.each, $.extend and _.extend, $.isArray and _.isArray and so on. It doesn’t really make sense to have all of those methods twice so I’m looking for a jQuery version without those methods.
Is there any jQuery build available for this?
I rather want those methods at the underscore object than the jQuery object due semantics, (jQuery for DOM, AJAX etc. and Underscore for helper functions), but I would also be very happy with an optimized underscore.js version!
jQuery uses those methods all over the place inside its own code. (sometimes with special undocumented behaviors)
You won’t be able to remove them easily.
Don’t worry about it; the code duplication isn’t so bad, and it’s much better than maintaining a custom version of jQuery.