From d21eac8b180ee2be209abc973b21edcd85221f58 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Thu, 26 Jun 2014 12:44:02 -0700 Subject: [PATCH] Cleanup `_.forEach` docs. [ci skip] --- lodash.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lodash.js b/lodash.js index 6168891bf..09c5a3ffe 100644 --- a/lodash.js +++ b/lodash.js @@ -4370,8 +4370,8 @@ * _([1, 2, 3]).forEach(function(n) { console.log(n); }).join(','); * // => logs each number and returns '1,2,3' * - * _.forEach({ 'one': 1, 'two': 2, 'three': 3 }, function(num, key) { console.log(num, key); }); - * // => logs each number-key pair ('1 one') and returns the object (property order is not guaranteed across environments) + * _.forEach({ 'one': 1, 'two': 2, 'three': 3 }, function(n, key) { console.log(n, key); }); + * // => logs each value-key pair and returns the object (property order is not guaranteed across environments) */ function forEach(collection, iterator, thisArg) { return (typeof iterator == 'function' && typeof thisArg == 'undefined' && isArray(collection))