Member Junction
    Preparing search index...
    • Compares two values for equality, including cross-representation Date comparisons where one or both values may be Date instances, ISO date strings, or numeric epoch timestamps (e.g., comparing in-memory entity field values before and after database or JSON wire serialization).

      Returns true when:

      • a === b (strict identity for primitives and references)
      • Both a and b are Date instances with identical .getTime() epoch milliseconds
      • One side is a Date and the other is a string or number that parses to the same epoch milliseconds as the Date

      Parameters

      • a: unknown

        First value to compare

      • b: unknown

        Second value to compare

      Returns boolean

      true if the values are equal, false otherwise

      ValuesEqual(42, 42); // true
      ValuesEqual(new Date('2026-08-01T00:00:00.000Z'), new Date('2026-08-01T00:00:00.000Z')); // true
      ValuesEqual(new Date('2026-08-01T00:00:00.000Z'), '2026-08-01T00:00:00.000Z'); // true
      ValuesEqual('a', 'b'); // false