Returns true if the points have identical values

const a = {x: 10, y: 10};
const b = {x: 10, y: 10;};
a === b // False, because a and be are different objects
isEqual(a, b) // True, because a and b are same value
  • Parameters

    • Rest...p: readonly Point[]

      Points

    Returns boolean

    True if points are equal