1. XenForo 1.5.14 中文版——支持中文搜索!现已发布!查看详情
  2. Xenforo 爱好者讨论群:215909318 XenForo专区

新闻 Underscore.js 1.9.0 发布,JavaScript 实用功能库 下载

本帖由 漂亮的石头2018-04-22 发布。版面名称:软件资讯

  1. 漂亮的石头

    漂亮的石头 版主 管理成员

    注册:
    2012-02-10
    帖子:
    488,229
    赞:
    47
    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.

    下载地址:

    Underscore.js 1.9.0 发布,JavaScript 实用功能库下载地址
     
正在加载...