Skip to main content
Module

x/rimbu/typical/mod.ts>Str.Tail

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
type alias Str.Tail
import { type Str } from "https://deno.land/x/rimbu@0.12.3/typical/mod.ts";
const { Tail } = Str;

Returns all but the first character of the given string, or false if the string is empty.

Examples

Example 1

Tail<'abcd'> => 'bcd'
Tail<''> => false

Type Parameters

S extends string
definition: S extends Append<string, infer Rest> ? Rest : false