Dapatkan indeks setelah mendorong nilai dalam array di JS

var testRowIndex = gridData.push(TestRow) - 1;
Gentle Gnat