export default function findCentroid(coords) {
  return {
    x: coords.reduce((sum, coord) => sum + coord.x, 0) / coords.length,
    y: coords.reduce((sum, coord) => sum + coord.y, 0) / coords.length
  };
}