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

Function createClass

lib/index.es.js:2580–2589  ·  view source on GitHub ↗
(parent, init)

Source from the content-addressed store, hash-verified

2578}
2579
2580function createClass(parent, init) {
2581 let klass = function (...args) {
2582 if (!(this instanceof klass)) {
2583 return new klass(...args);
2584 }
2585 init.apply(this, args);
2586 };
2587 inherits(klass, parent);
2588 return klass;
2589}
2590
2591// OK, so here's the deal. Consider this code:
2592// var db1 = new PouchDB('foo');

Callers 1

index.es.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…