From 1f9e66016d08f8b3ffa524aa28173b3bd4a8793e Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Mon, 23 Apr 2012 12:23:57 -0400 Subject: [PATCH] lodash: Add sections to README.md. [jddalton] Former-commit-id: f3db95e12ddb790ca33229aa3333507b184c6e4a --- README.md | 10 +++++++++- test/test.js | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4f9e043a7..6d71d9d04 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Lo-Dash v0.1.0 -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: diff --git a/test/test.js b/test/test.js index 37e059687..dc6f23364 100644 --- a/test/test.js +++ b/test/test.js @@ -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]); });