mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
lodash: Add sections to README.md. [jddalton]
Former-commit-id: f3db95e12ddb790ca33229aa3333507b184c6e4a
This commit is contained in:
10
README.md
10
README.md
@@ -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:
|
||||
|
||||
@@ -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]);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user