-
Notifications
You must be signed in to change notification settings - Fork 46
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
dotobject.Object function #28
Comments
If you would like type checking like that you could consider using typescript. Somebody made a definition available at: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/dot-object Although I do notice the types there should be updated, because the argument type is currently defined there as Perhaps I'll do a pull request there later, however I'm not really using typescript at the moment. |
Hi, @rhalff. But, i think is not a problem with the Typescript. I'm using the type definition. Like i said, it's just a definition of a behavior to
|
I think updating the type definition would be enough else every single function should always test the type of each and every argument during runtime. If in your code |
I think it'll be good if there was a filter to undefined and null objects in this function, i looked at the code, but there wasn't a filter.
The text was updated successfully, but these errors were encountered: