We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Are you sure that throwing an exception on an empty object in the input is a good solution?
I mean
normalize(undefined) // []
BUT
normalize({}) // throw ERROR
WHY?
Maybe it should be
normalize({}) // []
The text was updated successfully, but these errors were encountered:
valid point, probably undefined should also throw an error
undefined
Sorry, something went wrong.
I mean that it should be [], but not an error
[]
Because {} is a valid declaration and after normalizing it should be []
{}
Yes, probably, normalize(undefined) should throw an error.
normalize(undefined)
👍
No branches or pull requests
Are you sure that throwing an exception on an empty object in the input is a good solution?
I mean
BUT
WHY?
Maybe it should be
The text was updated successfully, but these errors were encountered: