MCPcopy
hub / github.com/jagenjo/webglstudio.js / copyObj

Function copyObj

editor/js/extra/codemirror/codemirror.js:8339–8345  ·  view source on GitHub ↗
(obj, target, overwrite)

Source from the content-addressed store, hash-verified

8337 };
8338
8339 function copyObj(obj, target, overwrite) {
8340 if (!target) target = {};
8341 for (var prop in obj)
8342 if (obj.hasOwnProperty(prop) && (overwrite !== false || !target.hasOwnProperty(prop)))
8343 target[prop] = obj[prop];
8344 return target;
8345 }
8346
8347 function bind(f) {
8348 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