diff --git a/src/Models/SelectedTable.js b/src/Models/SelectedTable.js new file mode 100644 index 0000000..7c1a831 --- /dev/null +++ b/src/Models/SelectedTable.js @@ -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) + } +} \ No newline at end of file