Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lodash-omitdeep

Package Overview
Dependencies
Maintainers
0
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash-omitdeep

lodash omitDeep/omitByDeep object key/value recursively

  • 1.4.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

♻️ Lodash Omit Deep

Lodash omitDeep/omitDeepBy object key/value recursively

lodash-omitdeep allows you to execute lodash omit, omitBy functions recursively.

Install

Install with npm or yarn

$ npm i lodash-omitdeep --save
# or
$ yarn add lodash-omitdeep

Usage

Install ♻️ Lodash Omit Deep with npm or yarn

$ npm i lodash-omitdeep --save
# or
$ yarn add lodash-omitdeep

omitDeep

import { omitDeep } from 'lodash-omitdeep';
omitDeep({ a: 'a', b: 'b', c: { b: 'b', d: { b: 'b', f: 'f' } } }, 'b');
//=> {a: "a", c: {d: {f: "f"}}}
omitDeep({ a: 'a', b: 'b', c: { b: 'b', d: { b: 'b', f: 'f' } } }, ['a', 'b']);
//=> {c: {d: {f: "f"}}}

omitDeepBy

import { omitDeepBy } from 'lodash-omitdeep';
import isNil from 'lodash/isNil';
import isNumber from 'lodash/isNumber';

omitDeepBy({ a: 'a', b: null, c: { b: 'b', d: { b: 'b', f: null } } }, isNil);
//=> {a: "a", c: {b: "b", d: {b: "b"}}}
omitDeepBy({ a: 2, b: 'b', c: { b: 4, d: { b: 1, f: 'f' } } }, isNumber);
//=> {b: "b", c: {d: {f: "f"}}}

✨ Contributors

debabin
☄️ debabin

Keywords

FAQs

Package last updated on 05 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc