function f([first, second]: [number, number]) { console.log(first); console.log(second); } f([1, 2]);