Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

Concat Type TypeScript

//concat
type Concat<T extends Array<unknown>, U extends Array<unknown>> = [...T, ...U];
type Result = Concat<[1], [2]>; // expected to be [1, 2]
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #Concat #Type #TypeScript
ADD COMMENT
Topic
Name
3+3 =