removeDupEndPts function
dynamic
removeDupEndPts(
- dynamic points
Implementation
removeDupEndPts(points) {
var l = points.length;
if (l > 2 && points[l - 1].equals(points[0])) {
points.removeLast();
}
}