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

x/rambda/rambda.js>dropLast

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

It returns howMany items dropped from the end of list or string input.

Parameters

howMany: number
input: T[]

Parameters

howMany: number
input: string

Returns

string

Parameters

howMany: number

Returns

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