Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

ToArray

type ToArray<T> = T extends (infer U)[] ? U[] : T[];

§Type Parameters

§Type

§
T extends (infer U)[] ? U[] : T[]
[src]