Home Reference Source Test Repository

buildDocs/mixin.js

import { assign } from 'lodash';
export function Mixin(...srcs) {
    return (target) => {
        assign(target.prototype, ...srcs);
        return target;
    };
}
export { Mixin as mixin };
export default Mixin;