function transformExtent(extent, source, destination, stops) {
  const transformFunc = getTransform(source, destination);
  return applyTransform(extent, transformFunc, undefined, stops);
}
Transforms an extent from source projection to destination projection.  This
returns a new extent (and does not modify the original).

@param {import("./extent.js").Extent} extent The extent to transform.
@param {ProjectionLike} source Source projection-like.
@param {ProjectionLike} destination Destination projection-like.
@param {number} [stops] Number of stops per side used for the transform.
By default only the corners are used.
@return {import("./extent.js").Extent} The transformed extent.
@api