Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The equals()
method of Temporal.Instant
instances returns true
if this instant is equivalent in value to another instant (in a form convertible by Temporal.Instant.from()
), and false
otherwise. They are compared by their epochNanoseconds
. It is equivalent to Temporal.Instant.compare(this, other) === 0
.