We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5030793 commit c7fc3a8Copy full SHA for c7fc3a8
packages/turf-difference/index.ts
@@ -52,6 +52,7 @@ function difference(
52
const properties = features.features[0].properties || {};
53
54
const differenced = polygonClipping.difference(geoms[0], ...geoms.slice(1));
55
+
56
if (differenced.length === 0) return null;
57
if (differenced.length === 1) return polygon(differenced[0], properties);
58
return multiPolygon(differenced, properties);
0 commit comments