Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
doc: fix util.isObject documentation
Proposed functionality fix containing prior discussion:
#822

Fixes: #743
PR-URL: #1295
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Brendan Ashworth <brendan.ashworth@me.com>
  • Loading branch information
Fishrock123 committed Mar 31, 2015
commit 245ba1d658bdbb141ead71c9417f53918101c749
5 changes: 4 additions & 1 deletion doc/api/util.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,8 @@ 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.

var util = require('util');

Expand All @@ -338,6 +339,8 @@ Returns `true` if the given "object" is strictly an `Object`. `false` otherwise.
// false
util.isObject({})
// true
util.isObject(function(){})
// false


## util.isFunction(object)
Expand Down