function distance({x: number, y: number}) { // $ Alert return Math.sqrt(x*x + y*y); }