简体   繁体   English

Lazy.js是否可以像Lo-Dash那样替代Underscore?

[英]Is Lazy.js a drop-in replacement for Underscore like Lo-Dash?

My team is making the switch from Underscore to Lo-Dash or Lazy.js. 我的团队正在从Underscore切换到Lo-Dash或Lazy.js。 It looks like Lazy.js actually performs better than Lo-Dash most of the time, which is how these two libraries mainly compete. 看起来Lazy.js在大多数情况下实际上都比Lo-Dash表现更好,这就是这两个库主要竞争的方式。 I know that Lo-Dash is a drop-in replacement for Underscore and Underscore Stringify, but I couldn't find if Lazy.js is too. 我知道Lo-Dash可以替代Underscore和Underscore Stringify,但是我找不到Lazy.js是否也是如此。 I am asking this because we want there to be seamless integration when replacing the Underscore library. 我之所以这么问,是因为我们希望在替换Underscore库时实现无缝集成。

It is not a drop in replacement, although according to its own web site, it is purportedly faster. 尽管据其自己的网站称,它的更换速度并不是很快,但是更换的数量却不是很多。

One of the potential draw backs is that it doesn't have near the user base as lodash/underscore. 潜在的缺点之一是它没有像lodash / underscore这样的用户群。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM