mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 02:47:50 +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.
|
* @param {Mixed} [thisArg] The `this` binding for the callback.
|
||||||
* @example
|
* @example
|
||||||
*
|
*
|
||||||
* _.times(3, function() { genie.grantWish(); });
|
* _.times(3, function(n) { genie.grantWish(n); });
|
||||||
* // => calls `genie.grantWish()` 3 times
|
* // => calls `genie.grantWish(n)` three times, passing `n` of `0`, `1`, and `2` respectively
|
||||||
*
|
*
|
||||||
* _.times(3, function() { this.grantWish(); }, genie);
|
* _.times(3, function(n) { this.grantWish(n); }, genie);
|
||||||
* // => also calls `genie.grantWish()` 3 times
|
* // => also calls `genie.grantWish(n)` three times
|
||||||
*/
|
*/
|
||||||
function times(n, callback, thisArg) {
|
function times(n, callback, thisArg) {
|
||||||
var index = -1;
|
var index = -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user