2.1.4 • Published 2 years ago

remove-object-dynamic v2.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years 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

2 years ago

2.1.3

2 years ago

2.1.2

2 years ago

2.1.1

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago