Module

x/rambda/index.d.ts>init

Faster and smaller alternative to Ramda
Latest
function init
import { init } from "https://dotland.deno.dev/x/rambda@9.4.1/index.d.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