Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/froebel/types.ts>TakeLast

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

Type Parameters

T extends any[]
I extends number
definition: Length<T> extends I ? T : T extends [any, ...infer S] ? TakeLast<S, I> : never