nearestPoint(points) {
		let nearest, dist

		for (let point of points) {
			let distance = this.distanceTo(point)
			if (!dist || distance < dist) {
				dist = distance
				nearest = region
			}
		}

		return nearest
	}
/**
	 * @param {Array} points An array of points to consider
	 */
@param {Array} points An array of points to consider
@param { Array } points An array of points to consider
nearestPoint(points) {
		let nearest, dist
		for (let point of points) {
			let distance = this.distanceTo(point)
			if (!dist || distance < dist) {
				dist = distance
				nearest = region
			}
		}
		return nearest
	}
nearestPoint ( points ) { let nearest , dist for ( let point of points ) { let distance = this . distanceTo ( point ) if ( ! dist || distance < dist ) { dist = distance nearest = region } } return nearest }
@param {Array} points An array of points to consider
@param { Array } points An array of points to consider