0.1.2 • Published 1 year ago

despan v0.1.2

Weekly downloads
-
License
WTFPL
Repository
github
Last release
1 year ago

despan

Deconstruct rowSpan and colSpan of cells in <table>.

Demo

↓

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

License

WTFPL

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago