Module

x/rambda/rambda.js>times

Faster and smaller alternative to Ramda
Go to Latest
function times
import { times } from "https://dotland.deno.dev/x/rambda@v9.2.0/rambda.js";

It returns the result of applying function fn over members of range array.

The range array includes numbers between 0 and howMany(exclusive).

Parameters

fn: (i: number) => T
howMany: number

Parameters

fn: (i: number) => T

Returns

(howMany: number) => T[]