function createOrUpdateFromCoordinates(coordinates, dest) {
  const extent = createOrUpdateEmpty(dest);
  return extendCoordinates(extent, coordinates);
}
@param {Array<import("./coordinate.js").Coordinate>} coordinates Coordinates.
@param {Extent} [dest] Extent.
@return {Extent} Extent.