MCPcopy Index your code
hub / github.com/apache/pouchdb / createClass

Function createClass

lib/index-browser.js:2744–2753  ·  view source on GitHub ↗
(parent, init)

Source from the content-addressed store, hash-verified

2742}
2743
2744function createClass(parent, init) {
2745 let klass = function (...args) {
2746 if (!(this instanceof klass)) {
2747 return new klass(...args);
2748 }
2749 init.apply(this, args);
2750 };
2751 inherits(klass, parent);
2752 return klass;
2753}
2754
2755// OK, so here's the deal. Consider this code:
2756// var db1 = new PouchDB('foo');

Callers 1

index-browser.jsFile · 0.70

Calls 1

inheritsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…