equal
Checks whether two dates are equal by comparing their normalized timestamps.
Interactive example
Syntax
Classic signature
typescript
function equal(
first: TheDate | SerializedTheDate,
second: TheDate | SerializedTheDate
): booleanCurried signature
typescript
function equal(
second: TheDate | SerializedTheDate
): (first: TheDate | SerializedTheDate) => booleanParameters
first: First date value to compare.second: Second date value used as reference.
Return value
true when both dates represent the same timestamp, otherwise false.
