function getArea(extent) {
  let area = 0;
  if (!isEmpty(extent)) {
    area = getWidth(extent) * getHeight(extent);
  }
  return area;
}
Get the size of an extent.
@param {Extent} extent Extent.
@return {number} Area.
@api