MCPcopy Index your code
hub / github.com/jashkenas/underscore / baseCreate

Function baseCreate

underscore.js:640–648  ·  view source on GitHub ↗
(prototype)

Source from the content-addressed store, hash-verified

638
639 // An internal function for creating a new object that inherits from another.
640 function baseCreate(prototype) {
641 if (!isObject(prototype)) return {};
642 if (nativeCreate) return nativeCreate(prototype);
643 var Ctor = ctor();
644 Ctor.prototype = prototype;
645 var result = new Ctor;
646 Ctor.prototype = null;
647 return result;
648 }
649
650 // Creates an object that inherits from the given prototype object.
651 // If additional properties are provided then they will be added to the

Callers 2

createFunction · 0.70
executeBoundFunction · 0.70

Calls 2

isObjectFunction · 0.70
ctorFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…