0.1.2 ⢠Published 1 year ago
despan v0.1.2
despan
Deconstruct rowSpan
and colSpan
of cells in <table>
.
ā
Installation
npm i despan
Usage
import { despan } from "despan";
/** @type HTMLTableCellElement[][] */
const rows = despan(document.querySelector("table")); // can be a <table>, <thead>, <tbody> or <tfoot>
for (const row of rows) {
for (const cell of row) {
console.log(cell);
}
}