removeDupEndPts function

dynamic removeDupEndPts(
  1. dynamic points
)

Implementation

removeDupEndPts(points) {
  var l = points.length;

  if (l > 2 && points[l - 1].equals(points[0])) {
    points.removeLast();
  }
}