ecg-quicktest-model
Version:
JavaScript Model for the ECG quick test
13 lines (12 loc) • 342 B
JavaScript
;
/**
* The given SubType inherits the prototype of the given SuperType.
*
* @param subType
* @param superType
*/
module.exports = function inheritPrototype(subType, superType) {
var subTypePrototype = Object.create(superType.prototype);
subTypePrototype.constructor = subType;
subType.prototype = subTypePrototype;
};