Skip to content

Fix Type Error when null is passed to deepKeys #26

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

Merged
merged 3 commits into from
Nov 22, 2022
Merged

Conversation

mrodrig
Copy link
Owner

@mrodrig mrodrig commented Nov 22, 2022

No description provided.

Initially reported in mrodrig/json-2-csv#222
This issue appears when a `null` value is passed for key enumeration because technically `null` is an object, but doesn't have keys. This commit fixes the issue by adding a null check to prevent the type error.
@mrodrig mrodrig merged commit ee3749c into stable Nov 22, 2022
@mrodrig mrodrig deleted the fix-j2c-222 branch November 22, 2022 03:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant