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

Function createObj

static/mergely/lib/codemirror.js:8322–8332  ·  view source on GitHub ↗
(base, props)

Source from the content-addressed store, hash-verified

8320 function nothing() {}
8321
8322 function createObj(base, props) {
8323 var inst;
8324 if (Object.create) {
8325 inst = Object.create(base);
8326 } else {
8327 nothing.prototype = base;
8328 inst = new nothing();
8329 }
8330 if (props) copyObj(props, inst);
8331 return inst;
8332 };
8333
8334 function copyObj(obj, target, overwrite) {
8335 if (!target) target = {};

Callers 1

codemirror.jsFile · 0.70

Calls 1

copyObjFunction · 0.70

Tested by

no test coverage detected