mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-06-10 04:50:51 +00:00
7 lines
146 B
JavaScript
7 lines
146 B
JavaScript
|
|
module.exports = function(a, b){
|
|
var fn = function(){};
|
|
fn.prototype = b.prototype;
|
|
a.prototype = new fn;
|
|
a.prototype.constructor = a;
|
|
}; |