MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / insAtTop

Function insAtTop

scripts/table_addSortTable.js:21–24  ·  view source on GitHub ↗
(par, child)

Source from the content-addressed store, hash-verified

19 }
20
21 function insAtTop(par, child) {
22 if (par.childNodes.length) par.insertBefore(child, par.childNodes[0]);
23 else par.appendChild(child);
24 }
25
26 function countCols(tab) {
27 var nCols, i;

Callers 2

sortTableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected