First commit
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
Object.defineProperty(exports, "__esModule", {value: true});
|
||||
|
||||
exports.default = function $extend(from, fields) {
|
||||
function Inherit() {};
|
||||
Inherit.prototype = from;
|
||||
var proto = new Inherit();
|
||||
for (var name in fields) proto[name] = fields[name];
|
||||
if(fields.toString !== Object.prototype.toString) proto.toString = fields.toString;
|
||||
return proto;
|
||||
};
|
||||
Reference in New Issue
Block a user