MCPcopy Create free account
hub / github.com/TruthHun/BookStack / baseCreate

Function baseCreate

static/word2md/mammoth.browser.js:27972–27979  ·  view source on GitHub ↗
(prototype)

Source from the content-addressed store, hash-verified

27970
27971 // An internal function for creating a new object that inherits from another.
27972 var baseCreate = function(prototype) {
27973 if (!_.isObject(prototype)) return {};
27974 if (nativeCreate) return nativeCreate(prototype);
27975 Ctor.prototype = prototype;
27976 var result = new Ctor;
27977 Ctor.prototype = null;
27978 return result;
27979 };
27980
27981 var property = function(key) {
27982 return function(obj) {

Callers 2

executeBoundFunction · 0.70
mammoth.browser.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected