Skip to main content
Module

x/rambda/immutable.d.ts>times

Faster and smaller alternative to Ramda
Go to Latest
function times
import { times } from "https://deno.land/x/rambda@v7.0.1/immutable.d.ts";

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

Returns

readonly T[]

Parameters

fn: (i: number) => T

Returns

(howMany: number) => readonly T[]