5 ms·
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 require
by jsprogrammer 12y ago
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.
- d4n3 12y agoseems like lodash now has lazy evaluation as well when using the _(obj).method() syntax: http://filimanjaro.com/blog/2014/introducing-lazy-evaluation/ http://filimanjaro.com/blog/2014/introducing-lazy-evaluation...
- killercup 12y agoA new feature in 3.0 is that lodash now supports lazy evaluation using the chaining API from 2.x.
- masklinn 12y agoSo 2.0 code which used chaining is now broken if it doesn't explicitly exhaust the chain?
- je42 12y agoLazy.js is however not that active. I guess the community around it still needs to develop.