|
400 | 400 |
|
401 | 401 | <h2>Downloads <i style="padding-left: 12px; font-size:12px;">(Right-click, and use "Save As")</i></h2> |
402 | 402 |
|
403 | | - <table> |
| 403 | + <table style="min-width: 640px;"> |
404 | 404 | <tr> |
405 | 405 | <td><a href="underscore.js">Development Version (1.8.0)</a></td> |
406 | 406 | <td><i>51kb, Uncompressed with Plentiful Comments</i></td> |
407 | 407 | </tr> |
408 | 408 | <tr> |
409 | 409 | <td><a href="underscore-min.js">Production Version (1.8.0)</a></td> |
410 | 410 | <td> |
411 | | - <i>5.7kb, Minified and Gzipped</i> |
| 411 | + <i>5.7kb, Minified and Gzipped <b>(3x smaller than Lodash ;)</b></i> |
412 | 412 | <small>(<a href="underscore-min.map">Source Map</a>)</small> |
413 | 413 | </td> |
414 | 414 | </tr> |
@@ -2182,37 +2182,40 @@ <h2 id="changelog">Change Log</h2> |
2182 | 2182 | <b class="header">1.8.0</b> — <small><i>Feb. 19, 2015</i></small> — <a href="https://github.com/jashkenas/underscore/compare/1.7.0...1.8.0">Diff</a> — <a href="https://cdn.rawgit.com/jashkenas/underscore/1.8.0/index.html">Docs</a><br /> |
2183 | 2183 | <ul> |
2184 | 2184 | <li> |
2185 | | - Added <tt>_.allKeys</tt> which returns <i>all</i> the enumerable property |
2186 | | - names on an object. |
| 2185 | + Added <tt>_.mapObject</tt>, which is similar to <tt>_.map</tt>, but just |
| 2186 | + for the values in your object. (A real crowd pleaser.) |
2187 | 2187 | </li> |
2188 | 2188 | <li> |
2189 | | - Reverted a 1.7.0 change where <tt>_.extend</tt> only copied "own" properties. |
| 2189 | + Added <tt>_.allKeys</tt> which returns <i>all</i> the enumerable property |
| 2190 | + names on an object. |
2190 | 2191 | </li> |
2191 | 2192 | <li> |
2192 | | - Added <tt>_.mapObject</tt>, which is like <tt>_.map</tt>, but just |
2193 | | - for the values in your object. (A crowd favorite.) |
| 2193 | + Reverted a 1.7.0 change where <tt>_.extend</tt> only copied "own" |
| 2194 | + properties. Hopefully this will un-break you — if it breaks you |
| 2195 | + again, I apologize. |
2194 | 2196 | </li> |
2195 | 2197 | <li> |
2196 | | - Added <tt>_.extendOwn</tt> — a form of <tt>_.extend</tt> that |
| 2198 | + Added <tt>_.extendOwn</tt> — a less-useful form of <tt>_.extend</tt> that |
2197 | 2199 | only copies over "own" properties. |
2198 | 2200 | </li> |
2199 | 2201 | <li> |
2200 | 2202 | Added <tt>_.findIndex</tt> and <tt>_.findLastIndex</tt> functions, |
2201 | | - along the lines of <tt>_.indexOf</tt> and <tt>_.lastIndexOf</tt>. |
| 2203 | + which nicely complement their twin-twins <tt>_.indexOf</tt> and <tt>_.lastIndexOf</tt>. |
2202 | 2204 | </li> |
2203 | 2205 | <li> |
2204 | 2206 | Added an <tt>_.isError</tt> function. |
2205 | 2207 | </li> |
2206 | 2208 | <li> |
2207 | 2209 | Restored the <tt>_.unzip</tt> function as the inverse of <tt>zip</tt>. |
| 2210 | + Flip-flopping. I know. |
2208 | 2211 | </li> |
2209 | 2212 | <li> |
2210 | | - <tt>_.result</tt> now takes an optional <b>fallback</b> value (or function |
2211 | | - that provides a default value). |
| 2213 | + <tt>_.result</tt> now takes an optional fallback value (or function |
| 2214 | + that provides the fallback value). |
2212 | 2215 | </li> |
2213 | 2216 | <li> |
2214 | | - Added <tt>_.propertyOf</tt> wrapper as a mirror-world version |
2215 | | - of <tt>_.property</tt>. |
| 2217 | + Added the <tt>_.propertyOf</tt> function generator as a mirror-world |
| 2218 | + version of <tt>_.property</tt>. |
2216 | 2219 | </li> |
2217 | 2220 | <li> |
2218 | 2221 | Various and diverse code simplifications, changes for improved |
|
0 commit comments