MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / prepend

Function prepend

lib/web/renderjson.js:71–74  ·  view source on GitHub ↗
(el, child)

Source from the content-addressed store, hash-verified

69 return el;
70 };
71 var prepend = function(el, child) {
72 el.insertBefore(child, el.firstChild);
73 return el;
74 }
75 var isempty = function(obj) { for (var k in obj) if (obj.hasOwnProperty(k)) return false;
76 return true; }
77 var stripQuotes = function(txt) { if (txt.startsWith("\"") && txt.endsWith("\"")) return txt.substring(1, txt.length-1); else return txt;}

Callers 1

showFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected