Creates an object composed of the enumerable property paths of object that are not omitted. Part of Lodash Object since 0.1.0 (stable — not deprecated).
Note: Returns a new object — the source is not mutated. Remaining nested values are still shared by reference (shallow copy of kept props).
Syntax
Call _.omit. Start with this line.
Lodash
_.omit(object, [paths])
Call
What it does
_.omit(object, [paths])
Primary signature.
_.omit(object)
Work with an object’s keys, values, or paths.
Prefer import omit from "lodash/omit" when you want a smaller bundle.
Library declarations
Lodash
_.omit(object, [paths])
Parameters
This method has no parameters beyond those shown in the signature.
Choose. Short denylist → omit; short allowlist → pick.
Source. Unchanged in both cases.
Compatibility
Browser & Runtime Support
_.omit is a Lodash Object helper since 0.1.0. It runs anywhere Lodash runs — modern browsers (CDN or bundle) and Node.js / Bun / Deno with npm install lodash.
✓ Stable · Lodash 0.1.0+
_.omit()
Available in [email protected] full builds and the lodash/omit modular import. Works in evergreen browsers and current Node LTS when Lodash is installed.
100%With Lodash 0.1+
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
_.omitLodash 0.1.0+
Bottom line: Safe for production once Lodash is loaded. Prefer import omit from "lodash/omit" for smaller bundles. Use it to strip known paths without mutating the source.
Frequently Asked Questions
_.omit(object, …paths) returns a new object with all enumerable string keys from object except the listed paths. Official: _.omit({a:1,b:'2',c:3}, ['a','c']) → {b:'2'}.
No. It returns a new object. The source is left unchanged.
As an array (_.omit(obj, ['a','c'])) or as separate arguments (_.omit(obj, 'a', 'c')). Both forms work.
Yes. Pass a path string like 'b.c' or a path array. The parent object is copied with that nested key removed.
omit keeps everything except the listed paths. pick keeps only the listed paths.
Use import omit from "lodash/omit" or require("lodash/omit") for tree-shaking. Full build: import _ from "lodash" then _.omit.