named tuple typescript code example
Example: tuple in typescript
let empId: number = 1;
let empName: string = "Steve";
// Tuple type variable
let employee: [number, string] = [1, "Steve"];
let empId: number = 1;
let empName: string = "Steve";
// Tuple type variable
let employee: [number, string] = [1, "Steve"];