MCPcopy Index your code
hub / github.com/TruthHun/BookStack / copyObj

Function copyObj

static/mergely/lib/codemirror.js:8334–8340  ·  view source on GitHub ↗
(obj, target, overwrite)

Source from the content-addressed store, hash-verified

8332 };
8333
8334 function copyObj(obj, target, overwrite) {
8335 if (!target) target = {};
8336 for (var prop in obj)
8337 if (obj.hasOwnProperty(prop) && (overwrite !== false || !target.hasOwnProperty(prop)))
8338 target[prop] = obj[prop];
8339 return target;
8340 }
8341
8342 function bind(f) {
8343 var args = Array.prototype.slice.call(arguments, 1);

Callers 5

CodeMirrorFunction · 0.70
codemirror.jsFile · 0.70
markTextFunction · 0.70
markTextSharedFunction · 0.70
createObjFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected