Skip to main content

CommonObjectEqual

Callable

  • CommonObjectEqual<T>(rec1: T, rec2: unknown): rec2 is T

  • Return whether two records are equivalent for all fields as returned by Object.keys.

    @note

    does not support the comparison of nested structures.


    Type parameters

    • T

    Parameters

    • rec1: T
    • rec2: unknown

    Returns rec2 is T