1.3.5 • Published 7 months ago

lodash-omitdeep v1.3.5

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

♻️ 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

1.3.5

7 months ago

1.3.4

7 months ago

1.3.3

7 months ago

1.3.2

7 months ago

1.3.1

7 months ago

1.3.0

7 months ago

1.2.0

11 months ago

1.1.1

11 months ago

1.1.0

11 months ago

1.1.3

11 months ago

1.2.1

10 months ago

1.1.2

11 months ago

1.0.15

12 months ago

1.0.14

1 year ago

1.0.12

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago