|
180 | 180 | <div id="sidebar" class="interface"> |
181 | 181 |
|
182 | 182 | <a class="toc_title" href="#"> |
183 | | - Underscore.js <span class="version">(1.8.1)</span> |
| 183 | + Underscore.js <span class="version">(1.8.2)</span> |
184 | 184 | </a> |
185 | 185 | <ul class="toc_section"> |
186 | 186 | <li>» <a href="https://github.com/jashkenas/underscore">GitHub Repository</a></li> |
|
282 | 282 | <li>- <a href="#object-functions">functions</a></li> |
283 | 283 | <li>- <a href="#findKey">findKey</a></li> |
284 | 284 | <li>- <a href="#extend">extend</a></li> |
285 | | - <li>- <a href="#assign">assign</a></li> |
| 285 | + <li>- <a href="#extendOwn">extendOwn</a></li> |
286 | 286 | <li>- <a href="#create">create</a></li> |
287 | 287 | <li>- <a href="#pick">pick</a></li> |
288 | 288 | <li>- <a href="#omit">omit</a></li> |
@@ -403,13 +403,13 @@ <h2>Downloads <i style="padding-left: 12px; font-size:12px;">(Right-click, and u |
403 | 403 |
|
404 | 404 | <table> |
405 | 405 | <tr> |
406 | | - <td><a href="underscore.js">Development Version (1.8.1)</a></td> |
407 | | - <td><i>49kb, Uncompressed with Plentiful Comments</i></td> |
| 406 | + <td><a href="underscore.js">Development Version (1.8.2)</a></td> |
| 407 | + <td><i>51kb, Uncompressed with Plentiful Comments</i></td> |
408 | 408 | </tr> |
409 | 409 | <tr> |
410 | | - <td><a href="underscore-min.js">Production Version (1.8.1)</a></td> |
| 410 | + <td><a href="underscore-min.js">Production Version (1.8.2)</a></td> |
411 | 411 | <td> |
412 | | - <i>5.4kb, Minified and Gzipped</i> |
| 412 | + <i>5.7kb, Minified and Gzipped</i> |
413 | 413 | <small>(<a href="underscore-min.map">Source Map</a>)</small> |
414 | 414 | </td> |
415 | 415 | </tr> |
@@ -619,11 +619,12 @@ <h2 id="collections">Collection Functions (Arrays or Objects)</h2> |
619 | 619 | </pre> |
620 | 620 |
|
621 | 621 | <p id="contains"> |
622 | | - <b class="header">contains</b><code>_.contains(list, value)</code> |
623 | | - <span class="alias">Alias: <b>include</b></span> |
| 622 | + <b class="header">contains</b><code>_.contains(list, value, [fromIndex])</code> |
| 623 | + <span class="alias">Alias: <b>includes</b></span> |
624 | 624 | <br /> |
625 | 625 | Returns <i>true</i> if the <b>value</b> is present in the <b>list</b>. |
626 | | - Uses <b>indexOf</b> internally, if <b>list</b> is an Array. |
| 626 | + Uses <b>indexOf</b> internally, if <b>list</b> is an Array. |
| 627 | + Use <b>fromIndex</b> to start your search at a given index. |
627 | 628 | </p> |
628 | 629 | <pre> |
629 | 630 | _.contains([1, 2, 3], 3); |
@@ -1378,7 +1379,7 @@ <h2 id="objects">Object Functions</h2> |
1378 | 1379 | _.mapObject({start: 5, end: 12}, function(val, key) { |
1379 | 1380 | return val + 5; |
1380 | 1381 | }); |
1381 | | -=> {start: 10, b: 17} |
| 1382 | +=> {start: 10, end: 17} |
1382 | 1383 | </pre> |
1383 | 1384 |
|
1384 | 1385 | <p id="pairs"> |
@@ -1438,6 +1439,7 @@ <h2 id="objects">Object Functions</h2> |
1438 | 1439 |
|
1439 | 1440 | <p id="extendOwn"> |
1440 | 1441 | <b class="header">extendOwn</b><code>_.extendOwn(destination, *sources)</code> |
| 1442 | + <span class="alias">Alias: <b>assign</b></span> |
1441 | 1443 | <br /> |
1442 | 1444 | Like <b>extend</b>, but only copies <i>own</i> properties over to the |
1443 | 1445 | destination object. |
@@ -2191,13 +2193,26 @@ <h2 id="links">Links & Suggested Reading</h2> |
2191 | 2193 |
|
2192 | 2194 | <h2 id="changelog">Change Log</h2> |
2193 | 2195 |
|
| 2196 | + <p id="1.8.2"> |
| 2197 | + <b class="header">1.8.2</b> — <small><i>Feb. 22, 2015</i></small> — <a href="https://github.com/jashkenas/underscore/compare/1.8.1...1.8.2">Diff</a> — <a href="https://cdn.rawgit.com/jashkenas/underscore/1.8.2/index.html">Docs</a><br /> |
| 2198 | + <ul> |
| 2199 | + <li> |
| 2200 | + Restores the previous old-Internet-Explorer edge cases changed in |
| 2201 | + 1.8.1. |
| 2202 | + </li> |
| 2203 | + <li> |
| 2204 | + Adds a <tt>fromIndex</tt> argument to <tt>_.contains</tt>. |
| 2205 | + </li> |
| 2206 | + </ul> |
| 2207 | + </p> |
| 2208 | + |
2194 | 2209 | <p id="1.8.1"> |
2195 | 2210 | <b class="header">1.8.1</b> — <small><i>Feb. 19, 2015</i></small> — <a href="https://github.com/jashkenas/underscore/compare/1.8.0...1.8.1">Diff</a> — <a href="https://cdn.rawgit.com/jashkenas/underscore/1.8.1/index.html">Docs</a><br /> |
2196 | 2211 | <ul> |
2197 | 2212 | <li> |
2198 | | - Fixes/changes some old-Internet-Explorer and related edge case |
| 2213 | + Fixes/changes some old-Internet Explorer and related edge case |
2199 | 2214 | behavior. Test your app with Underscore 1.8.1 in an old IE and let |
2200 | | - us know how its doing... |
| 2215 | + us know how it's doing... |
2201 | 2216 | </li> |
2202 | 2217 | </ul> |
2203 | 2218 | </p> |
|
0 commit comments