From db7d198a55c2af27785ee0b80d1ea5b84581b11f Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Mon, 2 Apr 2012 13:05:52 -0400 Subject: [PATCH] Fixes #538 -- confusing wording around chaining. --- index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 9165f1428..e8d310c76 100644 --- a/index.html +++ b/index.html @@ -1382,8 +1382,7 @@ _.map([1, 2, 3], function(n){ return n * 2; }); _([1, 2, 3]).map(function(n){ return n * 2; });

- Using the object-oriented style allows you to chain together methods. Calling - chain on a wrapped object will cause all future method calls to + Calling chain on a wrapped object will cause all future method calls to return wrapped objects as well. When you've finished the computation, use value to retrieve the final value. Here's an example of chaining together a map/flatten/reduce, in order to get the word count of @@ -1534,7 +1533,8 @@ _([1, 2, 3]).value(); 1.2.4Jan. 4, 2012