Creates an array of function property names from own and inherited enumerable properties of object. Like _.functions, but also walks the prototype chain. Part of Lodash Object since 4.0.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 _.functionsIn. Start with this line.
Lodash
_.functionsIn(object)
Call
What it does
_.functionsIn(object)
Primary signature.
Prefer import functionsIn from "lodash/functionsIn" when you want a smaller bundle.
Library declarations
Lodash
_.functionsIn(object)
Parameters
Parameter
Description
object
Required. The object to inspect
Return Value
Return Value
Description
*
Array of own + inherited enumerable function names
Lodash Examples
Example 1 — Official: Own + Inherited Names
Own function properties and the enumerable prototype method are listed.
Own method.greetOwn is enumerable on the instance → listed.
Prototype.greet is defined as non-enumerable.
Filter. Non-enumerable inherited methods are ignored.
Tip. Constructor/prototype assignments are enumerable by default — those appear.
Compatibility
Browser & Runtime Support
_.functionsIn is a Lodash Object helper (available since 4.0.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 4.0.0+
_.functionsIn()
Available in [email protected] full builds and the lodash/functionsIn 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
_.functionsInLodash 4.0.0+
Bottom line: Safe for production once Lodash is on the page or in your bundle. Prefer import functionsIn from "lodash/functionsIn" for smaller builds. Use _.functions when inherited methods must be ignored.
Frequently Asked Questions
_.functionsIn(object) returns an array of function property names from own and inherited enumerable properties of object.
_.functions lists own enumerable function names only. _.functionsIn also includes inherited enumerable function names from the prototype chain.
Usually no. Class methods are non-enumerable on the prototype. _.functionsIn only reports enumerable function properties.
No. Order follows Lodash key iteration across own and inherited enumerable keys. Sort the array yourself if needed.
No. It returns string-keyed property names only.
Use import functionsIn from "lodash/functionsIn" or require("lodash/functionsIn"). Full build: import _ from "lodash" then _.functionsIn.