@nospamproxy/core
    Preparing search index...

    Interface ComparatorOptions<T>

    interface ComparatorOptions<T = any> {
        deepDelta: boolean;
        normalizeDates?: (keyof T)[];
        normalizeLineBreak: boolean;
        preserve?: string;
    }

    Type Parameters

    • T = any
    Index

    Properties

    deepDelta: boolean

    When set to true, compares the objects (excluding arrays) deeply, and only the difference is returned. By default set to false.

    normalizeDates?: (keyof T)[]

    Optional properties that are dates and should be normalized for comparison.

    This is only supported for top level properties and not nested properties.

    normalizeLineBreak: boolean

    When set totrue the different line breaks (CRLF and LF) are ignored as difference. By default set to true.

    preserve?: string

    Name of the property key that is always included in the output. This is usually used to preserve the odata type annotation. Thus, if 2 objects are completely same in property values, this property won't be added.