Browse Source

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>
v1.8.0-commit
Jeremiah Senkpiel 10 years ago
parent
commit
245ba1d658
  1. 5
      doc/api/util.markdown

5
doc/api/util.markdown

@ -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…
Cancel
Save