Gtk.TextIter.prototype.forward_to_end

function forward_to_end():void {
    // Gjs wrapper for gtk_text_iter_forward_to_end()
}

Moves iter forward to the "end iterator," which points one past the last valid character in the buffer. Gtk.get_char called on the end iterator returns 0, which is convenient for writing loops.