From 2df689524ee6b4d5eafa5039d9e5c547c0e25bd5 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Thu, 24 Dec 2015 00:16:25 -0600 Subject: [PATCH] Simplify `_.times` doc example. [ci skip] --- lodash.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lodash.js b/lodash.js index a6c6769cd..2336a2b89 100644 --- a/lodash.js +++ b/lodash.js @@ -13409,13 +13409,11 @@ * @returns {Array} Returns the array of results. * @example * - * var diceRolls = _.times(3, _.partial(_.random, 1, 6, false)); - * // => [3, 6, 4] + * _.times(3, String); + * // => ['0', '1', '2'] * - * _.times(3, function(n) { - * mage.castSpell(n); - * }); - * // => invokes `mage.castSpell` three times with `n` of `0`, `1`, and `2` + * _.times(4, _.constant(true)); + * // => [true, true, true, true] */ function times(n, iteratee) { n = toInteger(n);