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
Returning empty object where it should not #4
Comments
I think it come from the first If statement in the module: The RowDataPacket Object seems to not be an object but I don't see how I could make this If statement being true. |
I have found a fix but don't think if it's smart, can you provide a feedback about this ? I added those 3 lines
And now the P.S: Yes I have used your object-copy module ;-) |
Sorry for the late reply, and thanks for the detail. I'll try to take a look today.
lol very cool, thank you! |
@sdubrez can you add a complete code snippet that demonstrates the bug so I can easily reproduce? thanks! |
I believe we should not use |
Hi, I'm having some troubles with this package.
I have a RowDataPacket Object that I passed into the omit module.
I'm doing the following thing (where team is the RowDataPacket Object)
console.log(ObjectOmit(team, ['id']));
The result is
{}
I got an empty object where it should be the original RowDataPacket Object without his id attribute.
Any chance to have some help here ?
Thanks!
The text was updated successfully, but these errors were encountered: