frontend/.pnpm-store/v3/files/8c/90f23716d9cc88cd3e5d15feec7f52945bb015855f912643e7010e8bb1de6b6d7ab18745f7098769fae13f84fab03755424270990e02c056592b416c584a3a

11 lines
466 B
Plaintext

export function applyMixins(derivedCtor, baseCtors) {
for (let i = 0, len = baseCtors.length; i < len; i++) {
const baseCtor = baseCtors[i];
const propertyKeys = Object.getOwnPropertyNames(baseCtor.prototype);
for (let j = 0, len2 = propertyKeys.length; j < len2; j++) {
const name = propertyKeys[j];
derivedCtor.prototype[name] = baseCtor.prototype[name];
}
}
}
//# sourceMappingURL=applyMixins.js.map