0.0.14 • Published 3 years ago

@lgd-utils/object v0.0.14

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@lgd-utils/object

Bundle size MIT NPM downloads NPM version lodash npm styled with prettier

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

Documentation

Related

0.0.14

3 years ago

0.0.12

4 years ago

0.0.13

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.4

4 years ago

0.0.1

4 years ago