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