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

x/rambda/immutable.d.ts>init

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

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

Type Parameters

T extends readonly unknown[]

Returns

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

Parameters

input: string

Returns

string