import * as turf from '@turf/turf'; const p1 = [[[-2.4088388, 57.02108101], [-2.40733, 57.02113], [-2.40337, 57.02057], [-2.4008, 57.02051], [-2.39572, 57.01933], [-2 ...
The following Jest test generates two simple triangles and finds the difference. Turf unkink-polygon on the result throws "The input polygon may not have duplicate vertices (except for the first and ...