Skip to main content
Module

x/ts_toolbelt_unofficial/mod.ts>Tuple.Take

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

Extract N entries out of L

Examples

Example 1

Type Parameters

L extends List
N extends number
optional
way extends Way = "->"
definition: L extends unknown ? N extends unknown ? _Take<L, N, way> : never : never