You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
450 B
18 lines
450 B
3 years ago
|
'use strict';
|
||
|
|
||
|
const util = require('util');
|
||
|
const _ = require('lodash');
|
||
|
|
||
|
/**
|
||
|
* like util.inherits, but also copies over static properties
|
||
|
* @private
|
||
|
*/
|
||
|
function inherits(constructor, superConstructor) {
|
||
|
util.inherits(constructor, superConstructor); // Instance (prototype) methods
|
||
|
_.extend(constructor, superConstructor); // Static methods
|
||
|
}
|
||
|
|
||
|
module.exports = inherits;
|
||
|
module.exports.inherits = inherits;
|
||
|
module.exports.default = inherits;
|