radash
radash copied to clipboard
[FEATURE REQUEST] .shakeDeep
It would be awesome if there was a version of the shake method which also drops unwanted values in a nested object. The current implementation will leave the following object unchanged:
{ a: { b: undefined }}
Very interesting, I can see the value for sure. I would be down to either create another function and call it shakeDeep or add deep as an argument to the existing shake function. Either way.
If anyone wants to PR this 🍻
Done in #261.
I would love to see this feature, maybe we can make it optional?
I personally was under the wrong assumption it was acting in this way already
Hey @mstykow and @MatteoMaso! I and some others are maintaining a fork of Radash called Radashi. We would gladly accept a PR for this feature.