Underscore.js 1.9.0 已发布,Underscore 是一个 工具库,提供了一整套函数式编程的实用功能,但是没有扩展任何 内置对象。
更新内容:
- Adds the _.restArguments function for variadic function handling.
- Adds the _.chunk function for chunking up an array.
- Adds a _.isSymbol, _.isMap, _.isWeakMap, _.isSet and _.isWeakSet functions.
- _.throttle and _.debounce return functions that now have a .cancel() method, which can be used to cancel any scheduled calls.
- _.property now accepts arrays of keys and indexes as path specifiers, for looking up a deep properties of a value.
- _.range now accepts negative ranges to generate descending arrays.
- Adds support for several environments including: WebWorkers, browserify and ES6 imports.
- The placeholder used for partial is now configurable by setting
_.partial.placeholder. _.bindAllnow accepts arrays or arguments for keys.- Three years of performance improvements.
下载地址:
继续阅读与本文标签相同的文章
下一篇 :
Android实现美团下拉功能
-
便利店如何建立高效的物流信息系统平台
2026-05-18栏目: 教程
-
人工智能社会实验研究全面展开
2026-05-18栏目: 教程
-
OpenAI机械手“学习”解开三阶魔方技术
2026-05-18栏目: 教程
-
5G时代,能给我们带来什么样的生活改观
2026-05-18栏目: 教程
-
第六届世界互联网大会将首次启用新展馆
2026-05-18栏目: 教程
