@@ -126,11 +126,11 @@ <h2>Downloads <i style="padding-left: 12px; font-size:12px;">(Right-click, and u
126
126
127
127
< table >
128
128
< tr >
129
- < td > < a href ="underscore.js "> Development Version (1.2.2 )</ a > </ td >
129
+ < td > < a href ="underscore.js "> Development Version (1.2.3 )</ a > </ td >
130
130
< td > < i > 34kb, Uncompressed with Comments</ i > </ td >
131
131
</ tr >
132
132
< tr >
133
- < td > < a href ="underscore-min.js "> Production Version (1.2.2 )</ a > </ td >
133
+ < td > < a href ="underscore-min.js "> Production Version (1.2.3 )</ a > </ td >
134
134
< td > < i > < 4kb, Minified and Gzipped</ i > </ td >
135
135
</ tr >
136
136
</ table >
@@ -159,7 +159,7 @@ <h2>Table of Contents</h2>
159
159
< br />
160
160
< span class ="methods "> < a href ="#first "> first</ a > , < a href ="#initial "> initial</ a > , < a href ="#last "> last</ a > , < a href ="#rest "> rest</ a > ,
161
161
< a href ="#compact "> compact</ a > , < a href ="#flatten "> flatten</ a > , < a href ="#without "> without</ a > ,
162
- < a href ="#union "> union</ a > , < a href ="#intersection "> intersection</ a > , < a href ="#difference "> difference</ a > ,
162
+ < a href ="#union "> union</ a > , < a href ="#intersection "> intersection</ a > , < a href ="#difference "> difference</ a > ,
163
163
< a href ="#uniq "> uniq</ a > , < a href ="#zip "> zip</ a > , < a href ="#indexOf "> indexOf</ a > ,
164
164
< a href ="#lastIndexOf "> lastIndexOf</ a > , < a href ="#range "> range</ a > </ span >
165
165
</ p >
@@ -620,10 +620,10 @@ <h2>Array Functions</h2>
620
620
</ pre >
621
621
622
622
< p id ="difference ">
623
- < b class ="header "> difference</ b > < code > _.difference(array, other )</ code >
623
+ < b class ="header "> difference</ b > < code > _.difference(array, *others )</ code >
624
624
< br />
625
625
Similar to < b > without</ b > , but returns the values from < b > array</ b > that
626
- are not present in < b > other</ b > .
626
+ are not present in the < b > other</ b > arrays .
627
627
</ p >
628
628
< pre >
629
629
_.difference([1, 2, 3, 4, 5], [5, 2, 10]);
@@ -1338,6 +1338,24 @@ <h2>Links & Suggested Reading</h2>
1338
1338
1339
1339
< h2 id ="changelog "> Change Log</ h2 >
1340
1340
1341
+ < p >
1342
+ < b class ="header "> 1.2.3</ b > — < small > < i > Dec. 7, 2011</ i > </ small > < br />
1343
+ < ul >
1344
+ < li >
1345
+ Dynamic scope is now preserved for compiled < tt > _.template</ tt > functions,
1346
+ so you can use the value of < tt > this</ tt > if you like.
1347
+ </ li >
1348
+ < li >
1349
+ Sparse array support of < tt > _.indexOf</ tt > , < tt > _.lastIndexOf</ tt > .
1350
+ </ li >
1351
+ < li >
1352
+ Both < tt > _.reduce</ tt > and < tt > _.reduceRight</ tt > can now be passed an
1353
+ explicitly < tt > undefined</ tt > value. (There's no reason why you'd
1354
+ want to do this.)
1355
+ </ li >
1356
+ </ ul >
1357
+ </ p >
1358
+
1341
1359
< p >
1342
1360
< b class ="header "> 1.2.2</ b > — < small > < i > Nov. 14, 2011</ i > </ small > < br />
1343
1361
< ul >
0 commit comments