title: Javascript find furthest coordinate from a certain coordinate in an array of coordinates
body: <p>I know the center coordinates and an array of all coordinates of a polygon.
  How can I find out which coordinate is the furthest coordinate for the center point with Javascript? </p>
  
  <p>Center of bounds:</p>
  
  <p>lat: -13.647141573542923lng: 109.75651876851946</p>
  
  <p>Coordinates of the 4 polygon paths:</p>
  
  <p>"lat:-9.10209673872643 , lng: 108.10546875"</p>
  
  <p>"lat:-16.97274101999901 , lng: 91.58203125"</p>
  
  <p>"lat:-17.644022027872722 , lng: 120.234375"</p>
  
  <p>"lat:-8.407168163601074 , lng: 120.41015625"</p>
  
  <p><img src="https://i.stack.imgur.com/sIqrw.jpg" alt="centroid"></p>