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

Function toArray

scripts/table_addSortTable.js:14–19  ·  view source on GitHub ↗
(c)

Source from the content-addressed store, hash-verified

12 contentScript: {
13 onClick: function () {
14 function toArray(c) {
15 var a, k;
16 a = new Array();
17 for (k = 0; k < c.length; ++k) a[k] = c[k];
18 return a;
19 }
20
21 function insAtTop(par, child) {
22 if (par.childNodes.length) par.insertBefore(child, par.childNodes[0]);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected