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

x/rambda/mod.ts>init

Faster and smaller alternative to Ramda
Go to Latest
function init
import { init } from "https://deno.land/x/rambda@9.2.1/mod.ts";

It returns all but the last element of list or string input.

Type Parameters

T extends unknown[]

Returns

T extends readonly [...infer U, any] ? U : [...T]

Parameters

input: string

Returns

string