util.isFunction(object)
Stability: 0 - Deprecated
Returns true
if the given "object" is a Function
. Otherwise, returns false
.
const util = require('util'); function Foo() {} var Bar = function() {}; util.isFunction({}) // false util.isFunction(Foo) // true util.isFunction(Bar) // true
Please login to continue.