UNPKG

ecg-quicktest-model

Version:
13 lines (12 loc) 342 B
"use strict"; /** * 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; };