function containsXY(extent, x, y) {
  return extent[0] <= x && x <= extent[2] && extent[1] <= y && y <= extent[3];
}
Check if the passed coordinate is contained or on the edge of the extent.

@param {Extent} extent Extent.
@param {number} x X coordinate.
@param {number} y Y coordinate.
@return {boolean} The x, y values are contained in the extent.
@api