_.isFunction ships with Underscore.js (1.x). It runs anywhere Underscore runs — modern browsers (CDN or bundle) and Node.js / Bun / Deno with npm install underscore.
✓ Stable · Underscore 1.x
_.isFunction()
Available in [email protected] (UMD / ESM). Works in evergreen browsers and current Node LTS when Underscore is loaded. The official example uses browser alert.
100%With Underscore 1.x
Google ChromeSupported · Desktop & Mobile
Full support
Mozilla FirefoxSupported · Desktop & Mobile
Full support
Apple SafariSupported · macOS & iOS
Full support
Microsoft EdgeSupported · Chromium
Full support
Internet ExplorerNo native support · Use a polyfill
Polyfill
OperaSupported · Modern versions
Full support
Samsung InternetSupported · Android
Full support
BunSupported · JavaScript runtime
Supported
DenoSupported · JavaScript runtime
Supported
Node.jsSupported · Server runtime
Supported
Android WebViewSupported · Modern WebView
Full support
_.isFunctionUnderscore 1.x+
Bottom line: Safe for production once Underscore is on the page or in your bundle. Not a native browser API — load Underscore first. Prefer a pinned CDN version (e.g. [email protected]).
Frequently Asked Questions
_.isFunction(object) returns true only when the value is a Function — a function declaration, function expression, arrow function, class constructor, or similar callable. Strings, numbers, objects, and arrays return false.
_.isFunction(alert) returns true. alert is a built-in function in browsers, so Underscore treats it as a Function.
In modern engines they usually agree: typeof fn === "function". Underscore starts from a toString tag test and, when typeof is trustworthy, uses typeof obj == "function" for speed. Prefer _.isFunction for a readable Underscore-style check.
isObject is broader. Functions pass isObject because Underscore treats functions as objects. isFunction is the specific check when you need a callable.
Yes. Arrow functions, async functions, generator functions, and class constructors are all functions, so _.isFunction returns true.
No. It is a stable Underscore 1.x helper used throughout the library to decide whether a value can be called as an iteratee or callback.