MCPcopy
hub / github.com/allmarkedup/purl / promote

Function promote

purl.js:69–75  ·  view source on GitHub ↗
(parent, key)

Source from the content-addressed store, hash-verified

67 }
68
69 function promote(parent, key) {
70 if (parent[key].length === 0) return parent[key] = {};
71 var t = {};
72 for (var i in parent[key]) t[i] = parent[key][i];
73 parent[key] = t;
74 return t;
75 }
76
77 function parse(parts, parent, key, val) {
78 var part = parts.shift();

Callers 1

parseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…