Tuple Destructuring in TypeScript
A tuple, like an array, can be destructurized. Let's say we have a tuple like this:
typescriptlet user: [string, number] = ['john', 31];
Let's break it down into variables:
typescriptlet [name, age] = user;
Задание 1
The following tuple is given:
typescriptlet time: [number, number, number] = [12, 59, 59];
Break down the time pieces into separate variables.