despan
v0.1.2
Published
deconstruct `rowSpan` and `colSpan` of cells in `<table>`
Downloads
10
Readme
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);
}
}