A function that does nothing and returns undefined. Handy as a default callback or empty iteratee. Part of Lodash Util since 2.3.0 (stable — not deprecated).
Pass the arguments shown below. Prefer modular imports when you only need this helper.
Syntax
Call _.noop. Start with this line.
Lodash
_.noop()
Call
What it does
_.noop()
Primary signature.
_.noop(...)
Call the util helper.
Prefer import noop from "lodash/noop" when you want a smaller bundle.
Library declarations
Lodash
_.noop()
Parameters
This method has no parameters beyond those shown in the signature.
Return Value
Return Value
Description
*
Always undefined
Lodash Examples
Example 1 — Official: _.times(2, _.noop)
Pass _.noop as the iteratee — each call returns undefined.
APIs. Pass the reference so Lodash can call it later.
Rule. Default callback → _.noop, never _.noop().
Compatibility
Browser & Runtime Support
_.noop is a Lodash Util helper since 2.3.0. It runs anywhere Lodash runs — modern browsers (CDN or bundle) and Node.js / Bun / Deno with npm install lodash.
✓ Stable · Lodash 2.3.0+
_.noop()
Available in [email protected] full builds and the lodash/noop modular import. Works in evergreen browsers and current Node LTS when Lodash is installed.
100%With Lodash 2.3+
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
_.noopLodash 2.3.0+
Bottom line: Safe for production once Lodash is loaded. Prefer import noop from "lodash/noop" for smaller bundles. Pass _.noop (not _.noop()) as callbacks.
Frequently Asked Questions
_.noop is a function that does nothing and returns undefined. Pass the function reference _.noop (no parentheses) wherever an API needs a callback you do not care about.
Usually _.noop — that passes the function. _.noop() calls it immediately and yields undefined. Using _.noop() as a callback argument is almost always wrong.
As a default optional callback, a harmless iteratee for _.times / _.forEach, or a stub when a function is required but you have no work to do.
_.identity returns its first argument. _.noop ignores arguments and always returns undefined. Pass values through with identity; discard work with noop.
Yes, an empty arrow function behaves similarly. _.noop is a single shared reference, which helps equality checks and avoids allocating a new function each time.
No. It is a stable Lodash Util method since 2.3.0.