Skip to content
This repository has been archived by the owner on Oct 21, 2021. It is now read-only.

Replace == with === #4

Open
JeffPaine opened this issue May 16, 2014 · 1 comment
Open

Replace == with === #4

JeffPaine opened this issue May 16, 2014 · 1 comment

Comments

@JeffPaine
Copy link
Owner

Fix == comparison at https://github.com/JeffPaine/geojson-topojson/blob/gh-pages/index.html#L142

For some reason, switching it to === causes an error.

@stephanebachelier
Copy link

@JeffPaine probably because data can be undefined. And undefined !== null. I have not read your code a lot but it seems data can be undefined when calling merge.

You should use if (!data) instead. undefined and null will evaluate to false.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants