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

x/rambda/immutable.d.ts>tail

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

It returns all but the first element of input.

Type Parameters

T extends readonly unknown[]

Returns

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

Parameters

input: string

Returns

string