deconstruct `rowSpan` and `colSpan` of cells in `<table>`
npm install despanrowSpan and colSpan of cells in .
Demo
A1
C1
C2
D2
A3
B3
D3
ā
A1
A1
C1
C1
A1
A1
C2
D2
A3
B3
C2
D3
Installation
``sh
npm i despan
`
Usage
`ts
import { despan } from "despan";
/* @type HTMLTableCellElement[][] /
const rows = despan(document.querySelector("table")); // can be a , , or
for (const row of rows) {
for (const cell of row) {
console.log(cell);
}
}
``
License
WTFPL