Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

Unshift type Typescript

//unshift
type Unshift<T extends any[], K> = [K, ...T];
type unshift = Unshift<[1, 2], 0>; // [0, 1, 2,]
 
PREVIOUS NEXT
Tagged: #Unshift #type #Typescript
ADD COMMENT
Topic
Name
5+4 =