https://github.com/siberiacancode/lodash-omitdeep
♻️ tool allows you to execute lodash omit, omitBy functions recursively
https://github.com/siberiacancode/lodash-omitdeep
delete lodash omit omitby omitbydeep omitdeep remove
Last synced: 7 months ago
JSON representation
♻️ tool allows you to execute lodash omit, omitBy functions recursively
- Host: GitHub
- URL: https://github.com/siberiacancode/lodash-omitdeep
- Owner: siberiacancode
- License: mit
- Created: 2021-12-13T03:38:49.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-25T11:20:04.000Z (over 1 year ago)
- Last Synced: 2024-09-21T12:56:10.444Z (9 months ago)
- Topics: delete, lodash, omit, omitby, omitbydeep, omitdeep, remove
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/lodash-omitdeep
- Size: 739 KB
- Stars: 15
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# ♻️ 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](https://www.npmjs.com/) or [yarn](https://yarnpkg.com/)
```bash
$ npm i lodash-omitdeep --save
# or
$ yarn add lodash-omitdeep
```## Usage
Install **♻️ Lodash Omit Deep** with [npm](https://www.npmjs.com/) or [yarn](https://yarnpkg.com/)
```bash
$ npm i lodash-omitdeep --save
# or
$ yarn add lodash-omitdeep
```### omitDeep
```js
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
```js
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