Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/prelude_js/last.ts>LastString

A standard module for functional programming
Latest
type alias LastString
import { type LastString } from "https://deno.land/x/prelude_js@1.2.0/last.ts";

Infer the last element of string.

Type Parameters

T extends string
definition: T extends `${infer L}${infer R}` ? R extends "" ? L : LastString<R> : string