omit-empty
Recursively omit empty properties from an object. Omits empty objects, arrays, strings, and optionally zero. Similar results to what you would expect with `compact` for arrays.
- 74
- JavaScript
- MIT
- 7 y ago
Recursively omit empty properties from an object. Omits empty objects, arrays, strings, and optionally zero. Similar results to what you would expect with `compact` for arrays.
Array of common fields to emit for Mongoose toObject/toJSON (helpful for security)
:monkey::bread: lodash mixin for deep immutable destructuring with omit