From 71639cfea7d90f289320a13a60962efa1e884bd7 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Fri, 31 Aug 2012 13:05:12 -0700 Subject: [PATCH] Cleanup `_.times` documentation. Former-commit-id: 59ce4b689bb280650d28944664abd6a38f1c43a0 --- lodash.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lodash.js b/lodash.js index ebaca4809..820407ef7 100644 --- a/lodash.js +++ b/lodash.js @@ -4056,11 +4056,11 @@ * @param {Mixed} [thisArg] The `this` binding for the callback. * @example * - * _.times(3, function() { genie.grantWish(); }); - * // => calls `genie.grantWish()` 3 times + * _.times(3, function(n) { genie.grantWish(n); }); + * // => calls `genie.grantWish(n)` three times, passing `n` of `0`, `1`, and `2` respectively * - * _.times(3, function() { this.grantWish(); }, genie); - * // => also calls `genie.grantWish()` 3 times + * _.times(3, function(n) { this.grantWish(n); }, genie); + * // => also calls `genie.grantWish(n)` three times */ function times(n, callback, thisArg) { var index = -1;