mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 23:57:49 +00:00
Cleanup _.times documentation.
Former-commit-id: 59ce4b689bb280650d28944664abd6a38f1c43a0
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user