feat: selected table class

This commit is contained in:
ysandler 2020-07-28 13:44:50 -05:00 committed by Joshua Shoemaker
parent c34945b7d3
commit f9728c33f1

View File

@ -0,0 +1,15 @@
class SelectedTable {
constructor (props) {
this.table = props.table
}
getHeaders = () => {
const rows = this.table.rows
const length = rows.length
let lengthToSlice = 49
if (length < 50) lengthToSlice = length - 1
const firstSliceOfRows = rows.slice(0, lengthToSlice)
console.log(firstSliceOfRows)
// const uniqueHeaderSet = new Set(firstSliceOfRows)
}
}