doc: fix util.isObject documentation
Proposed functionality fix containing prior discussion: https://github.com/iojs/io.js/pull/822 Fixes: https://github.com/iojs/io.js/issues/743 PR-URL: https://github.com/iojs/io.js/pull/1295 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Brendan Ashworth <brendan.ashworth@me.com>
This commit is contained in:
parent
0bd4fe943a
commit
245ba1d658
@ -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');
|
||||
|
||||
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user