Creates an array of function property names from own enumerable properties of object. Inherited prototype methods are skipped. Part of Lodash Object since 0.1.0 (stable — not deprecated).
Pass the object and path or keys shown below. Check whether the helper mutates or returns a new object.
Syntax
Call _.functions. Start with this line.
Lodash
_.functions(object)
Call
What it does
_.functions(object)
Primary signature.
Prefer import functions from "lodash/functions" when you want a smaller bundle.
Library declarations
Lodash
_.functions(object)
Parameters
Parameter
Description
object
Required. The object to inspect
Return Value
Return Value
Description
*
Array of own enumerable function names
Lodash Examples
Example 1 — Official: Own Function Names
Own function properties are listed; the prototype method is skipped.
Own method.greetOwn is assigned on the instance → listed.
Class method.greet lives on the prototype and is non-enumerable.
functions. Sees only own enumerable function names.
functionsIn. Still skips non-enumerable prototype methods.
Compatibility
Browser & Runtime Support
_.functions is a Lodash Object helper (available since 0.1.0, stable in 4.x). It runs anywhere Lodash runs — modern browsers (via CDN or bundle) and Node.js / Bun / Deno with npm install lodash.
✓ Stable · Lodash 0.1.0+
_.functions()
Available in [email protected] full builds and the lodash/functions modular import. Works in evergreen browsers and current Node LTS when Lodash is installed.
100%With Lodash 4.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
_.functionsLodash 0.1.0+
Bottom line: Safe for production once Lodash is on the page or in your bundle. Prefer import functions from "lodash/functions" for smaller builds. Use _.functionsIn when inherited enumerable methods should be included.
Frequently Asked Questions
_.functions(object) returns an array of the object's own enumerable property names whose values are functions. Inherited methods are not included.
_.functions returns own enumerable function names only. _.functionsIn also includes inherited enumerable function names from the prototype chain.
Methods declared in a class body live on the prototype (and are usually non-enumerable). _.functions only inspects own enumerable properties, so those methods are skipped.
No. Order follows Lodash's own-key iteration (similar to Object.keys). Sort the array yourself if you need alphabetical output.
Yes. Any value for which Lodash treats as a function is included — regular, arrow, async, and generator functions.
Use import functions from "lodash/functions" or require("lodash/functions"). Full build: import _ from "lodash" then _.functions.