omit-empty
JavaScript
★ 73
updated 6y 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.
No plain-English explanation yet — one is being written right now. Check back in a minute.