From a3e017509359994b1c6af35695a4ff9dc2662deb Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sat, 1 Dec 2012 13:02:37 -0800 Subject: [PATCH] Update `_.each` documentation. [closes #867] --- index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 7010ee333..8940d2a79 100644 --- a/index.html +++ b/index.html @@ -406,10 +406,10 @@

Collection Functions (Arrays or Objects)

forEach function if it exists.

-_.each([1, 2, 3], function(num){ alert(num); });
+_.each([1, 2, 3], alert);
 => alerts each number in turn...
-_.each({one : 1, two : 2, three : 3}, function(num, key){ alert(num); });
-=> alerts each number in turn...
+_.each({one : 1, two : 2, three : 3}, alert); +=> alerts each number value in turn...

map_.map(list, iterator, [context])