Closed dlong500 closed 6 years ago
hi! i don't see any major downside about switching to lodash
, i also think that lodash
is the clear winner between the two projects, so i think that a PR for this is very welcome, just make sure that every underscore
method used has the proper equivalency in lodash
in next version v2
we are no longer using underscore methods (thanks to new ES features)
It would be nice if the
underscore
dependency could be dropped in favor oflodash
(or possibly even just removed altogether and replaced with native functions).IMO a
lodash
dependency is acceptable because so many other projects depend on it (and it is far more modular). Whileunderscore
was of course the original,lodash
has more than 3 times the download frequency on npm (and contains more features). The issue I'm having is that I'm having to bundle BOTH of them because of dependencies of modules I'm using, and while a dozen or so of the modules requirelodash
, jsreport-core is the only module I'm using that is pulling inunderscore
.Not a huge deal, but given how easy of a switch it is I thought I'd ask. If you are OK with it I could file a PR.