TS-Scribe - v0.6.2
    Preparing search index...

    Type Alias PruneObjectOptions

    Options for configuring the behaviour of pruneObject.

    type PruneObjectOptions = {
        arrays?: boolean;
        deep?: boolean;
        preserveDate?: boolean;
        preserveRegExp?: boolean;
    }
    Index

    Properties

    arrays?: boolean

    Remove undefined items from arrays. When false, arrays are returned as-is without any modification.

    true
    
    deep?: boolean

    Recursively prune nested objects and arrays.

    true
    
    preserveDate?: boolean

    Preserve Date instances without recursing into them. When false, Date objects are treated as plain objects (and typically become {}).

    true
    
    preserveRegExp?: boolean

    Preserve RegExp instances without recursing into them. When false, RegExp objects are treated as plain objects (and typically become {}).

    true