Remove all falsy values from an object and its nested children
- Published on
- Published on
- /1 mins read/---
This function will remove all falsy values like null
, undefined
, 0
, ''
, false
from an object and its nested children.
Allow passing custom falsyValues
to remove and return a new object without the falsy values.
Example usage
Happy coding