array destructuring types for loop typescript code example Example: array destructuring typescript type function f([a,b,c]: [number, number, number]) { }