const time1 = Temporal.PlainTime.from("12:34:56");
const time2 = Temporal.PlainTime.from({ hour: 12, minute: 34, second: 56 });
console.log(time1.equals(time2)); // true
const time3 = Temporal.PlainTime.from("00:34:56");
console.log(time1.equals(time3)); // falseTemporal.PlainTime.prototype.equals() / notebook
Temporal.PlainTime.prototype.equals()
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.