omit-empty icon indicating copy to clipboard operation
omit-empty copied to clipboard

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.

Results 3 omit-empty issues
Sort by recently updated
recently updated
newest added

Just like the removeZero option there are other falsy values that could be omitted like the explicit false.

Hello! When omitEmpty is called with an object that has Symbols as property keys, those keys are missing from the result: ```javascript const omitEmpty = require('omit-empty') const assert = require('assert')...

When building responses for REST List responses, an empty array is significant. So extended options to allow them to pass through. Also added support for a simple-minded excludedProperties to prevent...