We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bd4fe9 commit 245ba1dCopy full SHA for 245ba1d
doc/api/util.markdown
@@ -328,7 +328,8 @@ Returns `true` if the given "object" is `undefined`. `false` otherwise.
328
329
## util.isObject(object)
330
331
-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
332
+`Function`. `false` otherwise.
333
334
var util = require('util');
335
@@ -338,6 +339,8 @@ Returns `true` if the given "object" is strictly an `Object`. `false` otherwise.
338
339
// false
340
util.isObject({})
341
// true
342
+ util.isObject(function(){})
343
+ // false
344
345
346
## util.isFunction(object)
0 commit comments