diff --git a/component.json b/component.json index 8c033f640..ed48032df 100644 --- a/component.json +++ b/component.json @@ -5,6 +5,6 @@ "repo" : "jashkenas/underscore", "main" : "underscore.js", "scripts" : ["underscore.js"], - "version" : "1.8.3", + "version" : "1.9.0", "license" : "MIT" } diff --git a/index.html b/index.html index b3b80bd2c..fc6f624f0 100644 --- a/index.html +++ b/index.html @@ -180,7 +180,7 @@
@@ -1168,6 +1173,25 @@
+ memoize_.memoize(function, [index=function.length-1])
+ Alias: restArgs
+
+ Similar to ES6's rest param,
+ restParam
collects arguments passed to a function from
+ a given index
as an array.
+
+function multiply(multiplier, ...theArgs) { + return theArgs.map(function (element) { + return multiplier * element; + }); +} + +var arr = multiply(2, 1, 2, 3); +console.log(arr); // [2, 4, 6]
@@ -2206,6 +2230,32 @@
+ 1.9.0 — June 12, 2015 — Diff — Docs
+
WebWorker
, browserify and ES6 imports.
+ Function.prototype.bind
+ in _.bind
.
+ _.partial.placeholder
.
+ _.bindAll
now accepts arrays or arguments for keys.
+
1.8.3 — April 2, 2015 — Diff — Docs