Module

x/rambda/rambda.js>init

Faster and smaller alternative to Ramda
Go to Latest
function init
import { init } from "https://dotland.deno.dev/x/rambda@v9.2.0/rambda.js";

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