Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rambda/immutable.d.ts>take

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

It returns the first howMany elements of input.

Parameters

howMany: number
input: readonly T[]

Returns

readonly T[]

Parameters

howMany: number
input: string

Returns

string

Parameters

howMany: number

Returns

{ <T>(input: readonly T[]): readonly T[]; (input: string): string; }