-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
doc: fix util.isObject documentation #1295
Conversation
@@ -328,7 +328,7 @@ Returns `true` if the given "object" is `undefined`. `false` otherwise. | |||
|
|||
## util.isObject(object) | |||
|
|||
Returns `true` if the given "object" is strictly an `Object`. `false` otherwise. | |||
Returns `true` if the given "object" is strictly an `Object` __and__ not a `Function`. `false` otherwise. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you wrap this at 80 columns?
LGTM with style nit. |
731136d
to
99b0db9
Compare
Updated. |
LGTM |
Regarding the deprecation, I don't see any reason to postpone it beyond 2.0.0; we'd just be digging ourselves in a bigger hole if we plan on eventually removing it. I'd love to see lots of things deprecated before 2.0.0 to clean up the API, as there are a few function references and stuff that I think many would like to see deprecated and removed but they're just being kept. Though they may not be removed for some time, it'd free us up to remove them sooner rather than later. +1 for this PR |
Proposed functionality fix containing prior discussion: nodejs#822 Fixes: nodejs#743 PR-URL: nodejs#1295 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Brendan Ashworth <brendan.ashworth@me.com>
99b0db9
to
245ba1d
Compare
Thanks! @brendanashworth I'm going to open a new issue/pr for deprecation |
Puts #743 to rest for good.
The change to fix the functionality would be too radical.
Replaces #822 (arguments for this are also contained in that thread).
These functions should probably be deprecated later. Maybe post-2.0.0?