Skip to content

Commit

Permalink
doc: fix util.isObject documentation
Browse files Browse the repository at this point in the history
Proposed functionality fix containing prior discussion:
#822

Fixes: #743
PR-URL: #1295
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Brendan Ashworth <[email protected]>
  • Loading branch information
Fishrock123 committed Mar 31, 2015
1 parent 0bd4fe9 commit 245ba1d
Showing 1 changed file with 4 additions and 1 deletion.
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

0 comments on commit 245ba1d

Please sign in to comment.