MCPcopy
hub / github.com/witheve/Eve / copyObj

Function copyObj

src/codemirror.js:8366–8372  ·  view source on GitHub ↗
(obj, target, overwrite)

Source from the content-addressed store, hash-verified

8364 };
8365
8366 function copyObj(obj, target, overwrite) {
8367 if (!target) target = {};
8368 for (var prop in obj)
8369 if (obj.hasOwnProperty(prop) && (overwrite !== false || !target.hasOwnProperty(prop)))
8370 target[prop] = obj[prop];
8371 return target;
8372 }
8373
8374 function bind(f) {
8375 var args = Array.prototype.slice.call(arguments, 1);

Callers 5

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

Calls

no outgoing calls

Tested by

no test coverage detected