OptionalarraysRemove undefined items from arrays.
When false, arrays are returned as-is without any modification.
OptionaldeepRecursively prune nested objects and arrays.
OptionalpreservePreserve Date instances without recursing into them.
When false, Date objects are treated as plain objects (and typically become {}).
OptionalpreservePreserve RegExp instances without recursing into them.
When false, RegExp objects are treated as plain objects (and typically become {}).
Options for configuring the behaviour of pruneObject.