lodash: Add sections to README.md. [jddalton]

Former-commit-id: f3db95e12ddb790ca33229aa3333507b184c6e4a
This commit is contained in:
John-David Dalton
2012-04-23 12:23:57 -04:00
parent f58386b391
commit 1f9e66016d
2 changed files with 10 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
# Lo-Dash <sup>v0.1.0</sup>
A drop-in replacement for [Underscore.js](https://github.com/documentcloud/underscore/) that delivers **up to 8x performance improvements**, bug fixes, and additional features.
A drop-in replacement for [Underscore.js](https://github.com/documentcloud/underscore/) that delivers up to [8x performance improvements](http://jsperf.com/lodash-underscore#chart=bar), [bug fixes](https://github.com/bestiejs/lodash/blob/master/test/test.js#L71), and additional features.
## BestieJS
@@ -13,6 +13,14 @@ Underscore's [documentation](http://documentcloud.github.com/underscore/) may al
For a list of upcoming features, check out our [roadmap](https://github.com/bestiejs/lodash/wiki/Roadmap).
## So What's The Secret?
Lo-Dash's performance is gained by avoiding native methods, instead opting for simplified non-ES5 compliant methods optimized for common usage, and by leveraging function compilation to reduce the number of overall function calls.
## What else?
Lo-Dash comes with AMD loader support baked in, chainable `_.each`, and will [soon address](https://github.com/bestiejs/lodash/wiki/Roadmap) cross-browser object iteration issues.
## Installation and usage
In a browser:

View File

@@ -135,7 +135,7 @@
test('should call custom `toArray` method of an array', function() {
var array = [1, 2, 3];
array.toArray = function() { return [3, 2, 1] };
array.toArray = function() { return [3, 2, 1]; };
deepEqual(_.toArray(array), [3, 2, 1]);
});