Simplify _.times doc example. [ci skip]

This commit is contained in:
John-David Dalton
2015-12-24 00:16:25 -06:00
parent a20ad60f13
commit 2df689524e

View File

@@ -13409,13 +13409,11 @@
* @returns {Array} Returns the array of results. * @returns {Array} Returns the array of results.
* @example * @example
* *
* var diceRolls = _.times(3, _.partial(_.random, 1, 6, false)); * _.times(3, String);
* // => [3, 6, 4] * // => ['0', '1', '2']
* *
* _.times(3, function(n) { * _.times(4, _.constant(true));
* mage.castSpell(n); * // => [true, true, true, true]
* });
* // => invokes `mage.castSpell` three times with `n` of `0`, `1`, and `2`
*/ */
function times(n, iteratee) { function times(n, iteratee) {
n = toInteger(n); n = toInteger(n);