deep-cleaner

Recursively remove deeply nested properties and/or falsey values (excluding 0), empty objects, and empty arrays.

obj-clean

Remove empty objects, empty strings, null and undefined values from objects

deep-cleaner-es6

Delete nested key-value pairs on an object with a provided key, or remove undefined, null, empty strings, empty arrays, and empty nested objects from an object.