function equals(extent1, extent2) {
  return (
    extent1[0] == extent2[0] &&
    extent1[2] == extent2[2] &&
    extent1[1] == extent2[1] &&
    extent1[3] == extent2[3]
  );
}
Determine if two extents are equivalent.
@param {Extent} extent1 Extent 1.
@param {Extent} extent2 Extent 2.
@return {boolean} The two extents are equivalent.
@api