Module

x/rambda/immutable.d.ts>takeLast

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

It returns the last 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; }