Skip to main content
Module

x/froebel/types.ts>Take

A strictly typed utility library.
Go to Latest
type alias Take
import { type Take } from "https://deno.land/x/froebel@v0.22.0/types.ts";

Return a tuple containing the N first elements from T. If T is a tuple its labels will be preserved unless it contains variadic elements.

Type Parameters

T extends any[]
N extends number
definition: Countable<N> extends never ? never : Take_<T, N>