TypeScript o nazwie powrót

// The closest thing to a named return is
// defining a type and using it immediately
type Total = number
type Product = number
function stats(vals: number[]): [Total, Product] {
	...
}
qpwo