feat: selected table class

This commit is contained in:
Joshua Shoemaker 2020-07-28 13:44:50 -05:00
parent 3f85aa3ce2
commit 60fe2ac521

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)
}
}