lodash 3.9.0 发布,此版本更新内容如下:
Added _.gt, _.gte, _.lt, & _.lte
Added support for an ImmutableMap to _.memoize.Cache
ImmutableMap
_.memoize.Cache
Avoided using require in source comments to improve browserify build times
require
Ensured baseCreate works in ExtendScript
baseCreate
Ensured customizer results are respected by _.isEqual
customizer
_.isEqual
Ensured LodashWrapper.prototype.thru exists before creating a wrapper in flow
LodashWrapper.prototype.thru
flow
Ensured _.bind works with ES6 class constructors
_.bind
Ensured _.get can return null values
_.get
null
Ensured _.intersection works with a single array
_.intersection
Ensured _.has treats sparse arrays as dense
_.has
Ensured _.merge skips undefined values if a destination value exists
_.merge
undefined
Made null sort behind undefined & NaN
NaN
Made _.eq an alias of _.isEqual
_.eq
Optimized object comparisons in _.isEqual
Optimized _.max & _.min when invoked with iteratees
_.max
_.min
Optimized pullAt & remove
pullAt
remove
Used hasOwnProperty for the creation of reIsNative to avoid issues with core-js
hasOwnProperty
reIsNative
此版本现已提供下载:https://github.com/lodash/lodash/archive/3.9.0-npm.zip
lodash 是一个 JavaScript 实用工具库,提供一致性,模块化,性能和配件等功能。
_.assign({ 'a': 1 }, { 'b': 2 }, { 'c': 3 });// → { 'a': 1, 'b': 2, 'c': 3 }_.map([1, 2, 3], function(n) { return n * 3; });// → [3, 6, 9]
当前支持 Chrome 39-40, Firefox 34-35, IE 6-11, Opera 25-26, Safari 5-8, io.js 1.0.4, Node.js 0.8.28 & 0.10.35, PhantomJS 1.9.8, RingoJS 0.11, & Rhino 1.7RC5。
评论删除后,数据将无法恢复
lodash 3.9.0 发布,JavaScript 实用工具库
lodash 3.9.0 发布,此版本更新内容如下:
Added _.gt, _.gte, _.lt, & _.lte
Added support for an
ImmutableMapto_.memoize.CacheAvoided using
requirein source comments to improve browserify build timesEnsured
baseCreateworks in ExtendScriptEnsured
customizerresults are respected by_.isEqualEnsured
LodashWrapper.prototype.thruexists before creating a wrapper inflowEnsured
_.bindworks with ES6 class constructorsEnsured
_.getcan returnnullvaluesEnsured
_.intersectionworks with a single arrayEnsured
_.hastreats sparse arrays as denseEnsured
_.mergeskipsundefinedvalues if a destination value existsMade
nullsort behindundefined&NaNMade
_.eqan alias of_.isEqualOptimized object comparisons in
_.isEqualOptimized
_.max&_.minwhen invoked with iterateesOptimized
pullAt&removeUsed
hasOwnPropertyfor the creation ofreIsNativeto avoid issues with core-js此版本现已提供下载:https://github.com/lodash/lodash/archive/3.9.0-npm.zip
lodash 是一个 JavaScript 实用工具库,提供一致性,模块化,性能和配件等功能。
当前支持 Chrome 39-40, Firefox 34-35, IE 6-11, Opera 25-26, Safari 5-8, io.js 1.0.4, Node.js 0.8.28 & 0.10.35, PhantomJS 1.9.8, RingoJS 0.11, & Rhino 1.7RC5。