# @lgd-utils/object

> A front-end object tool

Latest version **0.0.14** (published 2022-01-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @lgd-utils/object
pnpm add @lgd-utils/object
yarn add @lgd-utils/object
bun add @lgd-utils/object
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.14 |
| Published | 2022-01-10 |
| First published | 2021-09-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 340 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 16 |
| Author | LGD.HuaFEEng |
| Maintainers | lgd.huafeeng |
| Keywords | object, mapping, util, tool, front-end |

## Links

- npm: https://www.npmjs.com/package/@lgd-utils/object
- Repository: https://github.com/LGDHuaOPER/lgd-utils
- Homepage: https://github.com/LGDHuaOPER/lgd-utils/tree/main/packages/object#readme
- Issues: https://github.com/LGDHuaOPER/lgd-utils/issues
- npm.io page: https://npm.io/package/@lgd-utils/object

## Dependencies (2)

- [lodash](https://npm.io/package/lodash.md) ^4.17.21
- [@lgd-utils/validate](https://npm.io/package/@lgd-utils/validate.md) ^0.0.17

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 0.0.14 (latest) — 2022-01-10
- 0.0.13 — 2021-11-22
- 0.0.12 — 2021-11-19
- 0.0.11 — 2021-10-28
- 0.0.10 — 2021-10-21
- 0.0.9 — 2021-09-28
- 0.0.8 — 2021-09-27
- 0.0.7 — 2021-09-27
- 0.0.6 — 2021-09-27
- 0.0.5 — 2021-09-26
- 0.0.4 — 2021-09-22
- 0.0.3 — 2021-09-22
- 0.0.2 — 2021-09-22
- 0.0.1 — 2021-09-19

## README

<!--
 * @Author: shiconghua
 * @Alias: LGD.HuaFEEng
 * @Date: 2021-09-19 22:59:53
 * @LastEditTime: 2021-11-18 15:16:22
 * @LastEditors: shiconghua
 * @Description: file content
 * @FilePath: \lgd-utils\packages\object\README.md
-->
# `@lgd-utils/object`

<div align="center">

[![Bundle size](https://img.shields.io/bundlephobia/minzip/@lgd-utils/object.svg)](https://bundlephobia.com/result?p=@lgd-utils/object)
[![MIT](https://img.shields.io/badge/license-MIT-000000.svg)](https://opensource.org/licenses/MIT/)
[![NPM downloads](https://img.shields.io/npm/dm/@lgd-utils/object.svg?style=flat)](https://npmjs.org/package/@lgd-utils/object)
[![NPM version](https://img.shields.io/npm/v/@lgd-utils/object.svg?style=flat)](https://npmjs.org/package/@lgd-utils/object)
[![lodash](https://img.shields.io/badge/lodash-4-green.svg)](https://github.com/lodash/lodash)
[![npm](https://img.shields.io/npm/dt/@lgd-utils/object)](https://www.npmjs.com/package/@lgd-utils/object)
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)

</div>

> A front-end object tool

## Usage

```
import object from '@lgd-utils/object';

const { omitNil, omitUndefined, sortObjectByProp } = object;
console.log(omitNil({ key: 'value', key1: null, key2: void 0 })); // { key: 'value' }
console.log(omitUndefined({ key: 'value', key1: null, key2: void 0 })); // { key: 'value', key1: null }
console.log(JSON.stringify(sortObjectByProp({ b: 2, a: '1', d: true, c: [33, 3], g: null, f: { ff: 55, ee: 4 } }))); // '{"a":"1","b":2,"c":[33,3],"d":true,"f":{"ee":4,"ff":55},"g":null}'
```

## Contribute

- [LGD.HuaFEEng(LGD.HuaOPER)][blog]

## Documentation

- [Quick tutorial](https://github.com/LGDHuaOPER/lgd-utils/tree/main/packages/object#readme)
- [Issue](https://github.com/LGDHuaOPER/lgd-utils/issues)

## Related

- [@lgd-utils/array](https://github.com/LGDHuaOPER/lgd-utils/tree/main/packages/array) - A front-end array tool
- [@lgd-utils/axios](https://github.com/LGDHuaOPER/lgd-utils/tree/main/packages/axios) - A axios adapter and middleware tool
- [@lgd-utils/cached-storage](https://github.com/LGDHuaOPER/lgd-utils/tree/main/packages/cached-storage) - 一个具有失效功能的缓存存储库
- [@lgd-utils/collection](https://github.com/LGDHuaOPER/lgd-utils/tree/main/packages/collection) - A front-end collection tool
- [@lgd-utils/error](https://github.com/LGDHuaOPER/lgd-utils/tree/main/packages/error) - A front-end error tool
- [@lgd-utils/html](https://github.com/LGDHuaOPER/lgd-utils/tree/main/packages/html) - A front-end html tool
- [@lgd-utils/number](https://github.com/LGDHuaOPER/lgd-utils/tree/main/packages/number) - A front-end number tool
- [@lgd-utils/regexp](https://github.com/LGDHuaOPER/lgd-utils/tree/main/packages/regexp) - A front-end regexp tool
- [@lgd-utils/symbol](https://github.com/LGDHuaOPER/lgd-utils/tree/main/packages/symbol) - A front-end symbol tool
- [@lgd-utils/utils](https://github.com/LGDHuaOPER/lgd-utils/tree/main/packages/utils) - A front-end utils tool
- [@lgd-utils/validate](https://github.com/LGDHuaOPER/lgd-utils/tree/main/packages/validate) - A front-end verification tool
- [More…](https://github.com/LGDHuaOPER/lgd-utils)

[blog]: https://lgdhuaoper.github.io/ '敬昭的博客'

---
_Source: https://npm.io/package/@lgd-utils/object · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
