-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Can't use constructor
key in the object
#15
Comments
@Gidoont it might be a reserved keyword for JS to know how an object was made, as a plain object or as a class instance. I'd advice you to not use the key called |
Unfortunately, it's not up to me whether to use such key or not. I'm receiving a JSON and have to do some work on it. |
@mesqueeb I think here's the issue - https://github.com/mesqueeb/is-what/blob/production/src/index.ts#L46
It does not recognize the object as a plain one if the |
PR - mesqueeb/is-what#24 |
@Gidoont thank you very much! it's released in latest version v3.0.3 |
Presence of the
constructor
key in the object seems to break flattening. No errors are produced, the object simply does not get flattened.The text was updated successfully, but these errors were encountered: