Module

x/lodash_es/src/util.js>times

lodash for deno use
Latest
function times
import { times } from "https://dotland.deno.dev/x/lodash_es@v0.0.2/src/util.js";

Invokes the iteratee n times, returning an array of the results of each invocation. The iteratee is invoked with one argument; (index).

Examples

_.times(3, String); // => ['0', '1', '2']

_.times(4, _.constant(0)); // => [0, 0, 0, 0]

Parameters

n

The number of times to invoke iteratee.

iteratee