-
Notifications
You must be signed in to change notification settings - Fork 943
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Intersect documentation is outdated #951
Comments
Agreed, I don't remember the exact reason why this was changed (strangely it was me who made that change fd592c0). I personally prefer this type of idiom Additionally, the output was change from 🤔 ... I would have no issues reverting this change back to @stebogit your thoughts? |
This change should also reflect @turf/difference |
@DenisCarriere @ricardo-kagawa I am not a big fan of
We should definitely update |
Both libraries have been published to reflect |
The documentation at http://turfjs.org/docs/#intersect says that
intersect
returnsundefined
for empty intersections, but it seems that it now returns an emptyFeature
instead, since4.7.1
.I guess that should have been a major version update, since that is a breaking change. It breaks what is explicitly documented (so
intersect(a, b) === undefined
does not work anymore), and related idioms (likeintersect(a, b) || c
).The text was updated successfully, but these errors were encountered: