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
Compares two values for equality, including cross-representation
Datecomparisons where one or both values may beDateinstances, ISO date strings, or numeric epoch timestamps (e.g., comparing in-memory entity field values before and after database or JSON wire serialization).Returns
truewhen:a === b(strict identity for primitives and references)aandbareDateinstances with identical.getTime()epoch millisecondsDateand the other is astringornumberthat parses to the same epoch milliseconds as theDate