var selfIsectsData = isects(feature, function filterFn(isect, ring0, edge0, start0, end0, frac0, ring1, edge1, start1, end1, frac1, unique){
return [isect, ring0, edge0, start0, end0, frac0, ring1, edge1, start1, end1, frac1, unique];
});
I noticed this when I got unexpectedly slow performance using simplepolygon outside of turf's unkinkPolygon (which I think uses a slightly older fork of this code).