I just can not remember how to return one of these objects with the minimum distance value, tell me how to implement plz. Math.min ? or may find ?
for (let point of this.points){ const res = {title: point.title, distance : point.getDistance(x,y,z).toFixed(0)}; console.log(res); } 