src/polygonClip.js
function polygonClosed(coordinates) {
  var a = coordinates[0],
      b = coordinates[coordinates.length - 1];
  return !(a[0] - b[0] || a[1] - b[1]);
}
function polygonClosed(coordinates) {
  var a = coordinates[0],
      b = coordinates[coordinates.length - 1];
  return !(a[0] - b[0] || a[1] - b[1]);
}
function polygonClosed ( coordinates ) { var a = coordinates [ 0 ] , b = coordinates [ coordinates . length - 1 ] ; return ! ( a [ 0 ] - b [ 0 ] || a [ 1 ] - b [ 1 ] ) ; }
Returns true if the polygon is closed.
Returns true if the polygon is closed .