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

Function createObj

static/js/codemirror/codemirror.js:4959–4965  ·  view source on GitHub ↗
(base, props)

Source from the content-addressed store, hash-verified

4957 }
4958
4959 function createObj(base, props) {
4960 function Obj() {}
4961 Obj.prototype = base;
4962 var inst = new Obj();
4963 if (props) copyObj(props, inst);
4964 return inst;
4965 }
4966
4967 function copyObj(obj, target) {
4968 if (!target) target = {};

Callers 1

codemirror.jsFile · 0.85

Calls 1

copyObjFunction · 0.85

Tested by

no test coverage detected