2.1.4 • Published 6 months ago

remove-object-dynamic v2.1.4

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

Note

This package currently add new function to handle deep object and remove it

Remove Object Dynamic

You can remove unnecessary payload without stress.

How to use this package

// * Lets say you have payload like this 
import { removeObjectDynamic, removeObjectDeepDynamic } from 'remove-object-dynamic'

const payload = {
  name: null,
  age: null,
  works: undefiend,
  status: 'Work'
}

const payload2 = {
  age: null,
  works: undefiend,
  status: 'Work',
  fullName: {
    first: 'Zulfan',
    last: ''
  }
}

console.log(removeObjectDynamic(payload))

console.log(removeObjectDeepDynamic(payload2))

// * Result 
// First Result
{ status: 'Work' }

// Second result 
{ status: 'Work', fullName: { first: 'Zulfan' } }
2.1.4

6 months ago

2.1.3

12 months ago

2.1.2

12 months ago

2.1.1

12 months ago

2.1.0

12 months ago

2.0.0

12 months ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago