Skip to main content
Module

x/ts_toolbelt_unofficial/mod.ts>L.Prepend

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

Add an element A at the beginning of L

Examples

Example 1

Type Parameters

L extends List
A extends any
definition: [A, ...L]