Hacker News new | ask | show | jobs
by urza 4155 days ago
It is alternative to underscore.js? Or extensions for underscore.js? Not clear from the page...
1 comments

It's supposed to be better, faster, and stronger (more functions) than underscore.

It's also under active maintenance from an enthusiastic dev. Do your own research, but I go with lodash.

Lazy.js claims to be even faster than both with support for lazy evaluation to boot. Not quite a drop-in replacement like lodash is, but I think it only requires a minor tweak.
seems like lodash now has lazy evaluation as well when using the _(obj).method() syntax:

http://filimanjaro.com/blog/2014/introducing-lazy-evaluation...

A new feature in 3.0 is that lodash now supports lazy evaluation using the chaining API from 2.x.
So 2.0 code which used chaining is now broken if it doesn't explicitly exhaust the chain?
Lazy.js is however not that active. I guess the community around it still needs to develop.