3 ms·
Lo-Dash is a mostly-compatible rewrite of Underscore, with a fascinatingly different approach to the codebase. Instead of using little functions that are implem
by jashkenas 14y ago
Lo-Dash is a mostly-compatible rewrite of Underscore, with a fascinatingly different approach to the codebase. Instead of using little functions that are implemented in terms of each other, it relies on code generation to create (eval) explicit large and optimized versions of many of the core iteration functions at load time, in your browser:
https://github.com/bestiejs/lodash/blob/master/lodash.js#L357-L480 https://github.com/bestiejs/lodash/blob/master/lodash.js#L35...
It's a very fun bit of code, and a great example of how differently a fork can be implemented while preserving more or less the same API. There's never been any tension about the project itself -- just about some of the "marketing" methods used to pitch it in the past. That said, Lo-Dash's main developer is contributing to Underscore directly as well these days, so it's all copacetic.