6 lines
144 B
JavaScript
6 lines
144 B
JavaScript
|
module.exports.inherits = function(a, b) {
|
||
|
for (var key of Object.keys(b.prototype)) {
|
||
|
a.prototype[key] = b.prototype[key];
|
||
|
}
|
||
|
}
|