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

Function copyObj

static/editor.md/lib/codemirror/lib/codemirror.js:8098–8104  ·  view source on GitHub ↗
(obj, target, overwrite)

Source from the content-addressed store, hash-verified

8096 };
8097
8098 function copyObj(obj, target, overwrite) {
8099 if (!target) target = {};
8100 for (var prop in obj)
8101 if (obj.hasOwnProperty(prop) && (overwrite !== false || !target.hasOwnProperty(prop)))
8102 target[prop] = obj[prop];
8103 return target;
8104 }
8105
8106 function bind(f) {
8107 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