MCPcopy Index your code
hub / github.com/tdewolff/minify / createObject

Function createObject

_benchmarks/sample_echarts.js:630–644  ·  view source on GitHub ↗
(proto, properties)

Source from the content-addressed store, hash-verified

628 return newArray;
629 }
630 function createObject(proto, properties) {
631 var obj;
632 if (Object.create) {
633 obj = Object.create(proto);
634 }
635 else {
636 var StyleCtor = function () { };
637 StyleCtor.prototype = proto;
638 obj = new StyleCtor();
639 }
640 if (properties) {
641 extend(obj, properties);
642 }
643 return obj;
644 }
645 function hasOwn(own, prop) {
646 return own.hasOwnProperty(prop);
647 }

Callers 2

ExtendedClassFunction · 0.70
sample_echarts.jsFile · 0.70

Calls 1

extendFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…