Skip to content
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

Use isPlainObject instead of isObject #12

Closed
wants to merge 1 commit into from

Conversation

ubenzer
Copy link

@ubenzer ubenzer commented Aug 20, 2017

isObject returns true for Date, Buffer objects. This causes iterating into this objects, eventually, you lose the original Date and Buffer objects. Fixes #11

isObject returns true for Date, Buffer objects. This causes iterating into this objects, eventually, you lose the original Date and Buffer objects. Fixes mcmath#11
@ubenzer
Copy link
Author

ubenzer commented Aug 20, 2017

I am not sure the failure reported on travis is related to the changes of mine. :/

@sloops77
Copy link

also need this fix - can this get merged pls?

@gajus
Copy link

gajus commented Jul 18, 2018

Would be nice to have this configurable, i.e. to be able to provide a custom function to check if value should be mapped.

My use case is that I want to serialize all instances of an error object in an object.

@ubenzer ubenzer closed this Jan 12, 2019
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.

3 participants