insertRow

fun insertRow(index: Int = definedExternally): HTMLTableRowElement(source)

Creates a new row (tr) in the table, and adds the row to the rows collection.

Parameters

index

Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection.

MDN Reference