Editable Datatable Data Object

Can’t seem to figure out how to obtain the data object of a datatable which is editable and has edits made. Does anyone know if there an easy JS way to grab the array of data?

I can get the original data set during construction via datatable.datamanager.data but when I run this after some edits it does not return the values of the edits.

Any help is much appreciated.

Dug around and found that this worked.

const indices = this.datatable.datamanager.getFilteredRowIndices();
const out = indices.map(i => this.datatable.datamanager.getRow(i).map(c => c.content));
return out.map(row => row.slice(1));