Function rightmost

Returns the right-most of the provided points.

Same as:

findMinimum((a, b) => {
if (a.x >= b.x) return a;
return b;
}, ...points)
  • Parameters

    • Rest...points: readonly Point[]

    Returns Point