MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / copyObj

Function copyObj

static/js/codemirror/codemirror.js:4967–4971  ·  view source on GitHub ↗
(obj, target)

Source from the content-addressed store, hash-verified

4965 }
4966
4967 function copyObj(obj, target) {
4968 if (!target) target = {};
4969 for (var prop in obj) if (obj.hasOwnProperty(prop)) target[prop] = obj[prop];
4970 return target;
4971 }
4972
4973 function emptyArray(size) {
4974 for (var a = [], i = 0; i < size; ++i) a.push(undefined);

Callers 4

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

Calls

no outgoing calls

Tested by

no test coverage detected