Skip to main content
Module

x/rambda/index.d.ts>take

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

It returns the first howMany elements of input.

Parameters

howMany: number
input: T[]

Parameters

howMany: number
input: string

Returns

string

Parameters

howMany: number

Returns

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