JS Combine clases, un poco ...

function newclasses(...classes) {
    class end {
        constructor() {
            classes.forEach((value) => {
                this[value.name] = new value();
            });
        }
    }
    return end;
}
Goldenegg000