end

fun end(index: Int): Double(source)

The end() method of the TimeRanges interface returns the time offset (in seconds) at which a specified time range ends.

MDN Reference