Skip to main content
Module

x/rambda/immutable.d.ts>dropLast

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

It returns howMany items dropped from the end of list or string 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; }