Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

Push Type Typescript

//push
type Push<T extends Array<unknown>, U> = [...T, U];
type pushArray = Push<['a', 'b'], 'c'>;
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #Push #Type #Typescript
ADD COMMENT
Topic
Name
6+9 =