Skip to main content
Module

x/ts_toolbelt_unofficial/mod.ts>List.Pop

👷 TypeScript's largest type utility library, now on Deno
Latest
type alias List.Pop
import { type List } from "https://deno.land/x/ts_toolbelt_unofficial@1.1.0/mod.ts";
const { Pop } = List;

Remove the last element out of L

Examples

Example 1

definition: L extends (readonly [...infer LBody, any] | readonly [...infer LBody, any]) ? LBody : L