首页
学习
活动
专区
工具
TVP
发布

Underscore.js 1.9.0 发布,JavaScript 实用功能库

Underscore.js 1.9.0 已发布,Underscore 是一个 JavaScript 工具库,提供了一整套函数式编程的实用功能,但是没有扩展任何 JavaScript 内置对象。

更新内容:

  • 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.
  • _.bindAll now accepts arrays or arguments for keys.
  • Three years of performance improvements.

 下载地址:

  • 发表于:
  • 原文链接https://www.oschina.net/news/95388/underscorejs-1-9-0-released
  • 如有侵权,请联系 cloudcommunity@tencent.com 删除。

扫码

添加站长 进交流群

领取专属 10元无门槛券

私享最新 技术干货

扫码加入开发者社群
领券